forked from jjiangweilan/WeilanEngine-GL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEngineManager.hpp
45 lines (30 loc) · 915 Bytes
/
EngineManager.hpp
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
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef ENGINE_MANAGER_H
#define ENGINE_MANAGER_H
#include "GameObject/GameObject.hpp"
#include "GameObject/Scene.hpp"
#include "Time.hpp"
namespace wlEngine {
class EngineManager {
public:
static EngineManager* getwlEngine();
void setScene(Scene*);
void loop();
~EngineManager();
Scene* getCurrentScene() {return currentScene;};
private:
bool quit;
EngineManager();
static EngineManager* engine;
Scene* currentScene;
void update();
void initializeSystems();
void initializeManagers();
/**
* @brief initialize anything that needs systemt to set up first
*/
void postInitialization();
void systemUpdate();
void SDLinit();
};
}
#endif