source:
opengl-game/vulkan-game.hpp@
2e77b3f
| Last change on this file since 2e77b3f was 2e77b3f, checked in by , 6 years ago | |
|---|---|
|
|
| File size: 562 bytes | |
| Rev | Line | |
|---|---|---|
| [99d44b2] | 1 | #ifndef _VULKAN_GAME_H |
| 2 | #define _VULKAN_GAME_H | |
| [e8ebc76] | 3 | |
| [0df3c9a] | 4 | #include "game-gui-sdl.hpp" |
| 5 | ||
| [2e77b3f] | 6 | #ifdef NDEBUG |
| 7 | const bool ENABLE_VALIDATION_LAYERS = false; | |
| 8 | #else | |
| 9 | const bool ENABLE_VALIDATION_LAYERS = true; | |
| 10 | #endif | |
| 11 | ||
| [99d44b2] | 12 | class VulkanGame { |
| [e8ebc76] | 13 | public: |
| [99d44b2] | 14 | VulkanGame(); |
| 15 | ~VulkanGame(); | |
| [0df3c9a] | 16 | |
| [b6e60b4] | 17 | void run(int width, int height, unsigned char guiFlags); |
| [0df3c9a] | 18 | |
| 19 | private: | |
| 20 | GameGui* gui; | |
| 21 | SDL_Window* window; | |
| 22 | ||
| [b6e60b4] | 23 | bool initWindow(int width, int height, unsigned char guiFlags); |
| [0df3c9a] | 24 | void initVulkan(); |
| 25 | void mainLoop(); | |
| 26 | void cleanup(); | |
| [e8ebc76] | 27 | }; |
| 28 | ||
| [99d44b2] | 29 | #endif // _VULKAN_GAME_H |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/medieval/chrome/site/your_project_logo.png)