blob: c42b917bbdff26ba3131f8cb6e15b1ae7857da7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef PKE_GAME_SETTINGS_HPP
#define PKE_GAME_SETTINGS_HPP
#include <chrono>
#include <cstdint>
struct GameSettings {
bool isGameRunning = true;
bool isGamePaused = false;
bool isShowingEditor = true;
bool isRenderingDebug = false;
std::chrono::steady_clock steadyClock;
int64_t targetFPS = 144;
int64_t minFPS = 20;
double deltaPerFrame = 1.0 / double(targetFPS);
double minimumDeltaPerFrame = 1.0 / double(minFPS);
struct {
bool isUsingDebugCamera = false;
bool isShowingConsole = true;
bool isShowingEntityList = true;
bool isShowingSceneEditor = true;
bool isShowingUBO = true;
} editorSettings;
struct {
bool isFramerateUnlocked = false;
bool isWaitingForVsync = true;
} graphicsSettings;
};
extern GameSettings pkeSettings;
#endif /* PKE_GAME_SETTINGS_HPP */
|