aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2019-09-26 10:38:12 -0400
committerClyne Sullivan <clyne@bitgloo.com>2019-09-26 10:38:12 -0400
commit00da4d690af08d45788d770f9aadc9548438f074 (patch)
tree171f959df04a4d322888198d5c8f48635f0bf3b6 /src/engine.hpp
parentff93f760dd50f078779bdabcd41626a45bea6548 (diff)
made Config static; added fps measure/text
Diffstat (limited to 'src/engine.hpp')
-rw-r--r--src/engine.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/engine.hpp b/src/engine.hpp
index ab6f16b..c2b3b58 100644
--- a/src/engine.hpp
+++ b/src/engine.hpp
@@ -36,19 +36,23 @@ private:
entityx::EntityManager entities;
entityx::SystemManager systems;
+ int fps;
+
std::thread logicThread;
std::thread physicsThread;
+ std::thread debugThread;
void logicLoop(void);
void physicsLoop(void);
- void renderLoop(void);
+ void renderLoop(int& fpsCounter);
bool shouldRun(void);
public:
Engine(void) :
entities(events),
- systems(entities, events) {}
+ systems(entities, events),
+ fps(0) {}
/**
* Initializes the game engine.