Courtney Goeltzenleuchter | 099f9f6 | 2014-09-01 13:56:09 -0600 | [diff] [blame] | 1 | #ifndef DISPLAYENGINE_H |
2 | #define DISPLAYENGINE_H | ||||
3 | |||||
4 | #include "xgl.h" | ||||
5 | #include "GL/freeglut_std.h" | ||||
6 | |||||
7 | class DisplayEngine | ||||
8 | { | ||||
9 | public: | ||||
10 | DisplayEngine(); | ||||
11 | |||||
12 | void Init(bool enable, int w, int h); | ||||
13 | void Display(XGL_IMAGE image, XGL_GPU_MEMORY image_mem); | ||||
14 | |||||
15 | void Reshape(int w, int h); | ||||
16 | |||||
17 | protected: | ||||
18 | bool m_enable; // Indicates if calls do any OpenGL or not. | ||||
19 | int m_width, m_height; | ||||
20 | }; | ||||
21 | |||||
22 | #endif // DISPLAYENGINE_H |