diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-10-09 14:12:30 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-10-09 22:53:11 -0400 |
| commit | 958ee36629199464c4d26ff3614e426a6265d70e (patch) | |
| tree | 01e81c913755a24dd4543cf0fabc3871dd17125b /src/game-settings.hpp | |
| parent | 4fa4fb567d53dbc0ee89926771649d28ca5fcf7f (diff) | |
move GameSettings
Diffstat (limited to 'src/game-settings.hpp')
| -rw-r--r-- | src/game-settings.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/game-settings.hpp b/src/game-settings.hpp new file mode 100644 index 0000000..2f7fb26 --- /dev/null +++ b/src/game-settings.hpp @@ -0,0 +1,26 @@ +#ifndef PKE_GAME_SETTINGS_HPP +#define PKE_GAME_SETTINGS_HPP + +#include <cstdint> + +struct GameSettings { + bool isGameRunning = true; + bool isGamePaused = false; + bool isFramerateUnlocked = true; + bool isShowingEditor = true; + bool isRenderingDebug = false; + int64_t targetFPS = 144; + int64_t minFPS = 20; + double deltaPerFrame = 1 / double(targetFPS); + double minimumDeltaPerFrame = 1 / double(minFPS); + struct { + bool isShowingConsole = true; + bool isShowingEntityList = true; + bool isShowingSceneEditor = true; + bool isShowingUBO = true; + } editorSettings; +}; + +extern GameSettings pkeSettings; + +#endif /* PKE_GAME_SETTINGS_HPP */ |
