diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-21 15:31:58 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-21 15:31:58 +0200 |
commit | ca393b6b47618e48c107ad5c021d86700343648e (patch) | |
tree | 298bff793ee331566b6be1840c8d7404409b5198 /gameloop/include/loopManager.h | |
parent | 8bf919f750807060f3ac2c640b8a02300af1733c (diff) |
move gameloop poc to mwe
Diffstat (limited to 'gameloop/include/loopManager.h')
-rw-r--r-- | gameloop/include/loopManager.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/gameloop/include/loopManager.h b/gameloop/include/loopManager.h deleted file mode 100644 index 06bcd5f..0000000 --- a/gameloop/include/loopManager.h +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once -#include <SDL2/SDL.h> -#include "window.h" -#include "gameObject.h" -class LoopManager{ - public: - LoopManager(); - void setup(); - void loop(); - private: - - std::vector<GameObject*> objectList; - void processInput(); - void update(); - void lateUpdate(); - void fixedUpdate(); - void render(); - bool gameRunning = false; - WindowManager window; - int timeScale = 1; - float accumulator = 0.0; - double currentTime; - double t = 0.0; - double dt = 0.01; -}; |