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