source:
opengl-game/space-game.hpp@
0df3c9a
Last change on this file since 0df3c9a was 0df3c9a, checked in by , 5 years ago | |
---|---|
|
|
File size: 405 bytes |
Rev | Line | |
---|---|---|
[e8ebc76] | 1 | #ifndef _SPACE_GAME_H |
2 | #define _SPACE_GAME_H | |
3 | ||
[0df3c9a] | 4 | #include "game-gui-sdl.hpp" |
5 | ||
6 | const int SCREEN_WIDTH = 800; | |
7 | const int SCREEN_HEIGHT = 600; | |
8 | ||
[e8ebc76] | 9 | class SpaceGame { |
10 | public: | |
[0df3c9a] | 11 | SpaceGame(); |
12 | ~SpaceGame(); | |
13 | ||
[e8ebc76] | 14 | void run(); |
[0df3c9a] | 15 | |
16 | private: | |
17 | GameGui* gui; | |
18 | SDL_Window* window; | |
19 | ||
20 | bool initWindow(); | |
21 | void initVulkan(); | |
22 | void mainLoop(); | |
23 | void cleanup(); | |
[e8ebc76] | 24 | }; |
25 | ||
26 | #endif // _SPACE_GAME_H |
Note:
See TracBrowser
for help on using the repository browser.