source:
opengl-game/opengl-game.hpp@
7bf5433
Last change on this file since 7bf5433 was b6e60b4, checked in by , 5 years ago | |
---|---|
|
|
File size: 440 bytes |
Rev | Line | |
---|---|---|
[d02c25f] | 1 | #ifndef _OPENGL_GAME_H |
2 | #define _OPENGL_GAME_H | |
3 | ||
4 | #include "game-gui-glfw.hpp" | |
5 | ||
6 | class OpenGLGame { | |
7 | public: | |
8 | OpenGLGame(); | |
9 | ~OpenGLGame(); | |
10 | ||
[b6e60b4] | 11 | void run(int width, int height, unsigned char guiFlags); |
[d02c25f] | 12 | |
13 | private: | |
[d8cb15e] | 14 | GameGui* gui; |
15 | GLFWwindow* window; | |
16 | ||
[b6e60b4] | 17 | bool initWindow(int width, int height, unsigned char guiFlags); |
[d8cb15e] | 18 | void initOpenGL(); |
19 | void mainLoop(); | |
20 | void cleanup(); | |
[d02c25f] | 21 | }; |
22 | ||
23 | #endif // _OPENGL_GAME_H |
Note:
See TracBrowser
for help on using the repository browser.