SDL in single thread

This commit is contained in:
Iwan Timmer
2016-01-01 13:00:14 +01:00
parent 302e3af9b8
commit ac1f0184e7
4 changed files with 67 additions and 46 deletions

View File

@@ -29,9 +29,11 @@
#define SDL_MOUSE_UNGRAB 3
#define SDL_TOGGLE_FULLSCREEN 4
SDL_Window *sdl_window;
#define SDL_CODE_FRAME 0
void sdl_init(int width, int height, bool fullscreen);
void sdl_loop();
SDL_mutex *mutex;
#endif /* HAVE_SDL */