feature/imgui-sdl
points-test
|
Last change
on this file since 7fc5e27 was 5edbd58, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 6 years ago |
|
For both openglgame and vulkangame, pass in the window width and height and a fullscreen flag to the run() function
|
-
Property mode
set to
100644
|
|
File size:
475 bytes
|
| Line | |
|---|
| 1 | #ifndef _VULKAN_GAME_H
|
|---|
| 2 | #define _VULKAN_GAME_H
|
|---|
| 3 |
|
|---|
| 4 | #include "game-gui-sdl.hpp"
|
|---|
| 5 |
|
|---|
| 6 | class VulkanGame {
|
|---|
| 7 | public:
|
|---|
| 8 | VulkanGame();
|
|---|
| 9 | ~VulkanGame();
|
|---|
| 10 |
|
|---|
| 11 | void run(unsigned int width, unsigned int height, unsigned char guiFlags);
|
|---|
| 12 |
|
|---|
| 13 | private:
|
|---|
| 14 | GameGui* gui;
|
|---|
| 15 | SDL_Window* window;
|
|---|
| 16 |
|
|---|
| 17 | bool initWindow(unsigned int width, unsigned int height, unsigned char guiFlags);
|
|---|
| 18 | void initVulkan();
|
|---|
| 19 | void mainLoop();
|
|---|
| 20 | void cleanup();
|
|---|
| 21 | };
|
|---|
| 22 |
|
|---|
| 23 | #endif // _VULKAN_GAME_H
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.