source: opengl-game/game-gui.hpp@ 9546928

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

Move some constants into consts.hpp

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