feature/imgui-sdl
points-test
Last change
on this file since eea05dd was 8667f76, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago |
Move getWindowSize and getRequiredExtensions to the game gui
|
-
Property mode
set to
100644
|
File size:
684 bytes
|
Line | |
---|
1 | #ifndef _GAME_GUI_H
|
---|
2 | #define _GAME_GUI_H
|
---|
3 |
|
---|
4 | #include <vulkan/vulkan.h>
|
---|
5 |
|
---|
6 | #include <string>
|
---|
7 | #include <vector>
|
---|
8 |
|
---|
9 | using namespace std;
|
---|
10 |
|
---|
11 | #define RTWO_SUCCESS true
|
---|
12 | #define RTWO_ERROR false
|
---|
13 |
|
---|
14 | class GameGui {
|
---|
15 | public:
|
---|
16 | virtual ~GameGui() {};
|
---|
17 |
|
---|
18 | virtual bool Init() = 0;
|
---|
19 | virtual void Shutdown() = 0;
|
---|
20 |
|
---|
21 | virtual void* CreateWindow(const string& title, unsigned int width, unsigned int height) = 0;
|
---|
22 | virtual void DestroyWindow() = 0;
|
---|
23 |
|
---|
24 | virtual bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface) = 0;
|
---|
25 | virtual vector<const char*> GetRequiredExtensions() = 0;
|
---|
26 | virtual void GetWindowSize(int* width, int* height) = 0;
|
---|
27 | };
|
---|
28 |
|
---|
29 | #endif // _GAME_GUI_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.