source:
opengl-game/vulkan-game.hpp@
301d0d4
| Last change on this file since 301d0d4 was 5edbd58, checked in by , 6 years ago | |
|---|---|
|
|
| File size: 475 bytes | |
| Rev | Line | |
|---|---|---|
| [99d44b2] | 1 | #ifndef _VULKAN_GAME_H |
| 2 | #define _VULKAN_GAME_H | |
| [e8ebc76] | 3 | |
| [0df3c9a] | 4 | #include "game-gui-sdl.hpp" |
| 5 | ||
| [99d44b2] | 6 | class VulkanGame { |
| [e8ebc76] | 7 | public: |
| [99d44b2] | 8 | VulkanGame(); |
| 9 | ~VulkanGame(); | |
| [0df3c9a] | 10 | |
| [5edbd58] | 11 | void run(unsigned int width, unsigned int height, unsigned char guiFlags); |
| [0df3c9a] | 12 | |
| 13 | private: | |
| 14 | GameGui* gui; | |
| 15 | SDL_Window* window; | |
| 16 | ||
| [5edbd58] | 17 | bool initWindow(unsigned int width, unsigned int height, unsigned char guiFlags); |
| [0df3c9a] | 18 | void initVulkan(); |
| 19 | void mainLoop(); | |
| 20 | void cleanup(); | |
| [e8ebc76] | 21 | }; |
| 22 | ||
| [99d44b2] | 23 | #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)