feature/imgui-sdl
points-test
Last change
on this file since e5d4aca 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
|
Rev | Line | |
---|
[0e6ecf3] | 1 | #ifndef _GAME_GUI_H
|
---|
| 2 | #define _GAME_GUI_H
|
---|
| 3 |
|
---|
| 4 | #include <vulkan/vulkan.h>
|
---|
| 5 |
|
---|
| 6 | #include <string>
|
---|
[8667f76] | 7 | #include <vector>
|
---|
[0e6ecf3] | 8 |
|
---|
| 9 | using namespace std;
|
---|
| 10 |
|
---|
[98f3232] | 11 | #define RTWO_SUCCESS true
|
---|
| 12 | #define RTWO_ERROR false
|
---|
| 13 |
|
---|
[f898c5f] | 14 | class GameGui {
|
---|
| 15 | public:
|
---|
[98f3232] | 16 | virtual ~GameGui() {};
|
---|
| 17 |
|
---|
| 18 | virtual bool Init() = 0;
|
---|
| 19 | virtual void Shutdown() = 0;
|
---|
[0e6ecf3] | 20 |
|
---|
| 21 | virtual void* CreateWindow(const string& title, unsigned int width, unsigned int height) = 0;
|
---|
| 22 | virtual void DestroyWindow() = 0;
|
---|
| 23 |
|
---|
[8667f76] | 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;
|
---|
[0e6ecf3] | 27 | };
|
---|
| 28 |
|
---|
| 29 | #endif // _GAME_GUI_H |
---|
Note:
See
TracBrowser
for help on using the repository browser.