feature/imgui-sdl
points-test
Last change
on this file since 99d44b2 was 99d44b2, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago |
Rename spacegame to vulkangame
|
-
Property mode
set to
100644
|
File size:
411 bytes
|
Line | |
---|
1 | #ifndef _VULKAN_GAME_H
|
---|
2 | #define _VULKAN_GAME_H
|
---|
3 |
|
---|
4 | #include "game-gui-sdl.hpp"
|
---|
5 |
|
---|
6 | const int SCREEN_WIDTH = 800;
|
---|
7 | const int SCREEN_HEIGHT = 600;
|
---|
8 |
|
---|
9 | class VulkanGame {
|
---|
10 | public:
|
---|
11 | VulkanGame();
|
---|
12 | ~VulkanGame();
|
---|
13 |
|
---|
14 | void run();
|
---|
15 |
|
---|
16 | private:
|
---|
17 | GameGui* gui;
|
---|
18 | SDL_Window* window;
|
---|
19 |
|
---|
20 | bool initWindow();
|
---|
21 | void initVulkan();
|
---|
22 | void mainLoop();
|
---|
23 | void cleanup();
|
---|
24 | };
|
---|
25 |
|
---|
26 | #endif // _VULKAN_GAME_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.