From 958ee36629199464c4d26ff3614e426a6265d70e Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Mon, 9 Oct 2023 14:12:30 -0400 Subject: move GameSettings --- src/game-settings.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/game-settings.hpp (limited to 'src/game-settings.hpp') 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 + +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 */ -- cgit v1.2.3