forked from lokesh-sharma/GameEngine
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCoreEngine.h
More file actions
43 lines (34 loc) · 1.01 KB
/
CoreEngine.h
File metadata and controls
43 lines (34 loc) · 1.01 KB
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
#ifndef COREENGINE_H
#define COREENGINE_H
#include"Game.h"
#include"RenderingEngine.h"
#include"display.h"
#include<GL/glew.h>
#include<GL/gl.h>
class GUIManager;
class PostProcess;
class CoreEngine
{
public:
CoreEngine( Display* display , Game* game , RenderingEngine* renderingEngine , GUIManager* m);
void start(){ m_running = true;}
void stop() { m_running = false;}
void run();
bool is_running() { return m_running;}
Display* getDisplay() { return m_display;}
float getDeltaTime() { return m_deltaTime;}
RenderingEngine* getRenderingEngine() { return renderingEngine;}
PostProcess* getPostProcessManager() { return m_postProcessManager;}
virtual ~CoreEngine();
private:
bool m_running;
float m_deltaTime;
RenderingEngine* renderingEngine;
GUIManager* m_guiManager;
PostProcess* m_postProcessManager;
Display* m_display;
Game* m_game;
CoreEngine(const CoreEngine& other) {}
CoreEngine& operator=(const CoreEngine& other) {}
};
#endif // COREENGINE_H