source: opengl-game/game-gui.hpp@ 76d19a8

feature/imgui-sdl points-test
Last change on this file since 76d19a8 was d5f2b42, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago

Create a generic GetError() function in game-gui that returns the last error returned by a call to some other function in game-gui

  • Property mode set to 100644
File size: 801 bytes
Line 
1#ifndef _GAME_GUI_H
2#define _GAME_GUI_H
3
4#ifdef GAMEGUI_INCLUDE_VULKAN
5 #include <vulkan/vulkan.h>
6#endif
7
8#include <string>
9#include <vector>
10
11using namespace std;
12
13#define RTWO_SUCCESS true
14#define RTWO_ERROR false
15
16class GameGui {
17 public:
18 virtual ~GameGui() {};
19
20 virtual string& GetError() = 0;
21
22 virtual bool Init() = 0;
23 virtual void Shutdown() = 0;
24
25 virtual void* CreateWindow(const string& title, unsigned int width, unsigned int height) = 0;
26 virtual void DestroyWindow() = 0;
27
28#ifdef GAMEGUI_INCLUDE_VULKAN
29 virtual bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface) = 0;
30#endif
31
32 virtual vector<const char*> GetRequiredExtensions() = 0;
33 virtual void GetWindowSize(int* width, int* height) = 0;
34};
35
36#endif // _GAME_GUI_H
Note: See TracBrowser for help on using the repository browser.