source: opengl-game/game-gui-sdl.hpp@ d02c25f

feature/imgui-sdl points-test
Last change on this file since d02c25f 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
RevLine 
[0e6ecf3]1#ifndef _GAME_GUI_SDL_H
2#define _GAME_GUI_SDL_H
3
[98f3232]4#include "game-gui.hpp"
[f898c5f]5
[0e6ecf3]6#include <SDL2/SDL.h>
[5f3dba8]7#include <SDL2/SDL_image.h>
8#include <SDL2/SDL_ttf.h>
[0e6ecf3]9#include <SDL2/SDL_vulkan.h>
10
[98f3232]11class GameGui_SDL : public GameGui {
[f898c5f]12 public:
13 bool Init();
14 void Shutdown();
[0e6ecf3]15
16 void* CreateWindow(const string& title, unsigned int width, unsigned int height);
17 void DestroyWindow();
18
[4eb4d0a]19#ifdef GAMEGUI_INCLUDE_VULKAN
[0e6ecf3]20 bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
[4eb4d0a]21#endif
22
[8667f76]23 vector<const char*> GetRequiredExtensions();
24 void GetWindowSize(int* width, int* height);
[0e6ecf3]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.