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