Use ``` #include "SDL2/SDL.h" #include <SDL2/SDL_opengles2.h> #include <SDL2/SDL_thread.h> #include <SDL2/SDL_syswm.h> #include <SDL2/SDL_video.h> ``` Instead of ``` //#include <SDL.h> ``` See https://wiki.libsdl.org/MigrationGuide and http://lazyfoo.net/tutorials/SDL/35_window_events/index.php [Example](https://gist.github.com/derofim/261630cc9eea7fce431710dc2e97b094) with emscripten_set_main_loop and sdl2
Use
Instead of
See https://wiki.libsdl.org/MigrationGuide and http://lazyfoo.net/tutorials/SDL/35_window_events/index.php
Example with emscripten_set_main_loop and sdl2