10 std::atomic_bool stopRunning = ATOMIC_VAR_INIT(
true);
16 void executeLoopOnce();
19 SDL_Window* mainWindow =
nullptr;
20 SDL_Cursor* systemCursors[SDL_NUM_SYSTEM_CURSORS] = {
nullptr};
23 int windowWidth = 1280;
24 int windowHeight = 720;
26 virtual bool initAppThread();
27 virtual void shutdownAppThread();
30 virtual void executeAppLoopOnce();
31 void requireExit() { stopRunning =
true; }
36 if (init()) requireExit();
38 virtual ~
BaseApp() { shutdown(); }