feature/imgui-sdl
points-test
Last change
on this file since 2beb6c7 was d8cb15e, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago |
Implement GetError() in game-gui-glfw and start using game-gui-glfw in opengl-game to show a window
|
-
Property mode
set to
100644
|
File size:
412 bytes
|
Rev | Line | |
---|
[d02c25f] | 1 | #ifndef _OPENGL_GAME_H
|
---|
| 2 | #define _OPENGL_GAME_H
|
---|
| 3 |
|
---|
| 4 | #include "game-gui-glfw.hpp"
|
---|
| 5 |
|
---|
[d8cb15e] | 6 | const int SCREEN_WIDTH = 800;
|
---|
| 7 | const int SCREEN_HEIGHT = 600;
|
---|
| 8 |
|
---|
[d02c25f] | 9 | class OpenGLGame {
|
---|
| 10 | public:
|
---|
| 11 | OpenGLGame();
|
---|
| 12 | ~OpenGLGame();
|
---|
| 13 |
|
---|
| 14 | void run();
|
---|
| 15 |
|
---|
| 16 | private:
|
---|
[d8cb15e] | 17 | GameGui* gui;
|
---|
| 18 | GLFWwindow* window;
|
---|
| 19 |
|
---|
| 20 | bool initWindow();
|
---|
| 21 | void initOpenGL();
|
---|
| 22 | void mainLoop();
|
---|
| 23 | void cleanup();
|
---|
[d02c25f] | 24 | };
|
---|
| 25 |
|
---|
| 26 | #endif // _OPENGL_GAME_H |
---|
Note:
See
TracBrowser
for help on using the repository browser.