source:
opengl-game/vulkan-game.hpp@
2beb6c7
Last change on this file since 2beb6c7 was 99d44b2, checked in by , 5 years ago | |
---|---|
|
|
File size: 411 bytes |
Rev | Line | |
---|---|---|
[99d44b2] | 1 | #ifndef _VULKAN_GAME_H |
2 | #define _VULKAN_GAME_H | |
[e8ebc76] | 3 | |
[0df3c9a] | 4 | #include "game-gui-sdl.hpp" |
5 | ||
6 | const int SCREEN_WIDTH = 800; | |
7 | const int SCREEN_HEIGHT = 600; | |
8 | ||
[99d44b2] | 9 | class VulkanGame { |
[e8ebc76] | 10 | public: |
[99d44b2] | 11 | VulkanGame(); |
12 | ~VulkanGame(); | |
[0df3c9a] | 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 | ||
[99d44b2] | 26 | #endif // _VULKAN_GAME_H |
Note:
See TracBrowser
for help on using the repository browser.