-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathengine.h
More file actions
51 lines (37 loc) · 746 Bytes
/
Copy pathengine.h
File metadata and controls
51 lines (37 loc) · 746 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
46
47
48
49
50
51
#ifndef __engine_h_
#define __engine_h_
#include "glrender.h"
class Scene;
typedef struct Vertex {
unsigned char r, g, b, a;
GLfloat x, y, z;
} Vertex;
class Engine {
public:
virtual ~Engine( void ) {
destroy();
};
virtual int msgBox(char *) {
return -1;
};
virtual void updateTimer() = 0;
void init();
void destroy();
void initRender();
void drawFrame();
void setViewport(int x, int y);
void setFrustum();
double getTime();
void toggleFrame();
void reloadShaders();
int getResX();
int getResY();
protected:
double m_time;
private:
GLRender *m_render;
Engine *m_engine;
Scene *m_scene;
};
extern Engine *p_engine;
#endif