source: opengl-game/game-gui.hpp@ 0e6ecf3

feature/imgui-sdl points-test
Last change on this file since 0e6ecf3 was 0e6ecf3, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 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
Line 
1#ifndef _GAME_GUI_H
2#define _GAME_GUI_H
3
4#include <vulkan/vulkan.h>
5
6#include <string>
7
8using namespace std;
9
10#define RTWO_SUCCESS true
11#define RTWO_ERROR false
12
13class GameGui {
14 public:
15 virtual ~GameGui() {};
16
17 virtual bool Init() = 0;
18 virtual void Shutdown() = 0;
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.