FINAL: v1

This commit is contained in:
2026-03-26 19:34:47 +01:00
parent 031c0e7293
commit 0f776347f4
11 changed files with 181 additions and 17 deletions

View File

@@ -27,7 +27,6 @@ namespace Game::Window {
int getTargetFPS() { return mTargetFPS; }
static SDL_Window* getSDLWindowBackend() { std::scoped_lock lock(sMutex); return sWindowBackend; }
Renderer::Renderer* getRenderer() { std::scoped_lock lock(mMutex); return &mRenderer; }
private:
@@ -39,6 +38,8 @@ namespace Game::Window {
Game::GameManager mGameManager;
std::jthread mGameThread;
bool mRunning;
int mLastWindowWidth = 0;
int mLastWindowHeight = 0;
int mTargetFPS = TARGET_FPS;
int mEffectiveFrameCap = TARGET_FPS;
#if DEBUG