source:
opengl-game/game-gui.hpp@
5edbd58
Last change on this file since 5edbd58 was 2beb6c7, checked in by , 5 years ago | |
---|---|
|
|
File size: 749 bytes |
Rev | Line | |
---|---|---|
[0e6ecf3] | 1 | #ifndef _GAME_GUI_H |
2 | #define _GAME_GUI_H | |
3 | ||
[9546928] | 4 | #include <string> |
5 | #include <vector> | |
6 | ||
[4eb4d0a] | 7 | #ifdef GAMEGUI_INCLUDE_VULKAN |
8 | #include <vulkan/vulkan.h> | |
9 | #endif | |
[0e6ecf3] | 10 | |
11 | using namespace std; | |
12 | ||
[f898c5f] | 13 | class GameGui { |
14 | public: | |
[98f3232] | 15 | virtual ~GameGui() {}; |
16 | ||
[d5f2b42] | 17 | virtual string& GetError() = 0; |
18 | ||
[98f3232] | 19 | virtual bool Init() = 0; |
20 | virtual void Shutdown() = 0; | |
[0e6ecf3] | 21 | |
22 | virtual void* CreateWindow(const string& title, unsigned int width, unsigned int height) = 0; | |
23 | virtual void DestroyWindow() = 0; | |
24 | ||
[4eb4d0a] | 25 | #ifdef GAMEGUI_INCLUDE_VULKAN |
[8667f76] | 26 | virtual bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface) = 0; |
[4eb4d0a] | 27 | #endif |
28 | ||
[8667f76] | 29 | virtual vector<const char*> GetRequiredExtensions() = 0; |
30 | virtual void GetWindowSize(int* width, int* height) = 0; | |
[0e6ecf3] | 31 | }; |
32 | ||
33 | #endif // _GAME_GUI_H |
Note:
See TracBrowser
for help on using the repository browser.