-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathengine.h
More file actions
45 lines (29 loc) · 748 Bytes
/
Copy pathengine.h
File metadata and controls
45 lines (29 loc) · 748 Bytes
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_H
#define ENGINE_H
#include <assert.h>
#include "window.h"
#include "graphics.h"
class Engine
{
public:
Engine(const char* name, int width, int height);
~Engine();
bool Initialize();
void Run();
void ProcessInput();
unsigned int getDT();
long long GetCurrentTimeMillis();
void Display(GLFWwindow*, double);
void setSpeed(glm::vec3 spd) { speed = spd; };
private:
// Window related variables
Window* m_window;
const char* m_WINDOW_NAME;
int m_WINDOW_WIDTH;
int m_WINDOW_HEIGHT;
bool m_FULLSCREEN;
glm::vec3 speed = glm::vec3(0.f, 0.f, 0.f);
Graphics* m_graphics;
bool m_running;
};
#endif // ENGINE_H