Open derofim opened 5 years ago
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 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