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@…>, 6 years ago

Move some constants into consts.hpp

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