feature/imgui-sdl
points-test
Last change
on this file since c559904 was c559904, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago |
Start using the logger class to output basic debugging info to a file in both openglgame and vulkangame
|
-
Property mode
set to
100644
|
File size:
593 bytes
|
Line | |
---|
1 | #ifndef _VULKAN_GAME_H
|
---|
2 | #define _VULKAN_GAME_H
|
---|
3 |
|
---|
4 | #include "game-gui-sdl.hpp"
|
---|
5 |
|
---|
6 | #ifdef NDEBUG
|
---|
7 | const bool ENABLE_VALIDATION_LAYERS = false;
|
---|
8 | #else
|
---|
9 | const bool ENABLE_VALIDATION_LAYERS = true;
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class VulkanGame {
|
---|
13 | public:
|
---|
14 | VulkanGame();
|
---|
15 | ~VulkanGame();
|
---|
16 |
|
---|
17 | void run(int width, int height, unsigned char guiFlags);
|
---|
18 |
|
---|
19 | private:
|
---|
20 | GameGui* gui;
|
---|
21 |
|
---|
22 | SDL_version sdlVersion;
|
---|
23 | SDL_Window* window;
|
---|
24 |
|
---|
25 | bool initWindow(int width, int height, unsigned char guiFlags);
|
---|
26 | void initVulkan();
|
---|
27 | void mainLoop();
|
---|
28 | void cleanup();
|
---|
29 | };
|
---|
30 |
|
---|
31 | #endif // _VULKAN_GAME_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.