feature/imgui-sdl
points-test
Last change
on this file since 0e6ecf3 was 0e6ecf3, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 6 years ago |
Create a game gui implementation using glfw3 and move window create/destruction and Vulkan surface creation to the game gui
|
-
Property mode
set to
100644
|
File size:
541 bytes
|
Rev | Line | |
---|
[0e6ecf3] | 1 | #ifndef _GAME_GUI_H
|
---|
| 2 | #define _GAME_GUI_H
|
---|
| 3 |
|
---|
| 4 | #include <vulkan/vulkan.h>
|
---|
| 5 |
|
---|
| 6 | #include <string>
|
---|
| 7 |
|
---|
| 8 | using namespace std;
|
---|
| 9 |
|
---|
[98f3232] | 10 | #define RTWO_SUCCESS true
|
---|
| 11 | #define RTWO_ERROR false
|
---|
| 12 |
|
---|
[f898c5f] | 13 | class GameGui {
|
---|
| 14 | public:
|
---|
[98f3232] | 15 | virtual ~GameGui() {};
|
---|
| 16 |
|
---|
| 17 | virtual bool Init() = 0;
|
---|
| 18 | virtual void Shutdown() = 0;
|
---|
[0e6ecf3] | 19 |
|
---|
| 20 | virtual void* CreateWindow(const string& title, unsigned int width, unsigned int height) = 0;
|
---|
| 21 | virtual void DestroyWindow() = 0;
|
---|
| 22 |
|
---|
| 23 | virtual bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface) = 0;
|
---|
| 24 | };
|
---|
| 25 |
|
---|
| 26 | #endif // _GAME_GUI_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.