source: opengl-game/game-gui-sdl.hpp@ 99d44b2

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

Rename vulkan-game.cpp to vulkan-ref.cpp and define the GAMEGUI_INCLUDE_VULKAN preprocessor directive to control whether the gui-game classes build with Vulkan support

  • Property mode set to 100644
File size: 672 bytes
Line 
1#ifndef _GAME_GUI_SDL_H
2#define _GAME_GUI_SDL_H
3
4#include "game-gui.hpp"
5
6#include <SDL2/SDL.h>
7#include <SDL2/SDL_image.h>
8#include <SDL2/SDL_ttf.h>
9#include <SDL2/SDL_vulkan.h>
10
11class GameGui_SDL : public GameGui {
12 public:
13 bool Init();
14 void Shutdown();
15
16 void* CreateWindow(const string& title, unsigned int width, unsigned int height);
17 void DestroyWindow();
18
19#ifdef GAMEGUI_INCLUDE_VULKAN
20 bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
21#endif
22
23 vector<const char*> GetRequiredExtensions();
24 void GetWindowSize(int* width, int* height);
25
26 private:
27 SDL_Window* window;
28};
29
30#endif // _GAME_GUI_SDL_H
Note: See TracBrowser for help on using the repository browser.