Etterna 0.74.4
Loading...
Searching...
No Matches
GameLoop.h
1#ifndef GAME_LOOP_H
2#define GAME_LOOP_H
4namespace GameLoop {
5 bool hasUserQuit();
6 void setUserQuit();
7 void setGameFocused(bool bAppHasFocus); /* Platform-specific code calls this to indicate focus changes.*/
8 bool isGameFocused(); /* @return True if the application has input focus. */
9 bool didFocusChange(); /* @return True if the application's focus has changed since last called */
10 void setToggleWindowed();
11 bool GetAndClearToggleWindowed();
12
13 void SetUpdateRate(float fUpdateRate);
14 float GetUpdateRate();
15 void ChangeTheme(const std::string& sNewTheme);
16 void ChangeGame(const std::string& new_game, const std::string& new_theme = "");
17 void RunGameLoop();
18 void loadSavedLayout();
19 };
20
21#endif
Main rendering and update loop.
Definition GameLoop.cpp:253
void setGameFocused(bool isFocused)
Called when the user attempted to quit the game.
Definition GameLoop.cpp:267
void setUserQuit()
Definition GameLoop.cpp:258