22 #define SDL_MAIN_HANDLED
24 #include <SDL2/SDL_opengl.h>
35 static float TicksPerSecond;
36 static int TimeOfFrame;
37 static bool showDebugInfo;
38 static bool showPhysicsDebug;
39 static bool init(QString WindowTitle=
"Platformer Game Engine by Wohldtand");
40 static void toggleVSync(
bool vsync);
42 static bool isReady();
43 static void setCursorVisibly(
bool viz);
45 static void rePaint();
47 static SDL_Window *window;
48 static SDL_GLContext glcontext_background;
49 static SDL_GLContext glcontext;
50 static int setFullScreen(
bool fs);
53 static int processEvents(SDL_Event &event);
55 static bool checkSDLError(
int line = -1);
58 static bool showCursor;
59 static SDL_bool IsFullScreen(SDL_Window *win);
static int SDL_ToggleFS(SDL_Window *win=NULL)
Definition: window.cpp:262