source: opengl-game/game-gui-sdl.hpp@ 0e6ecf3

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

Create a game gui implementation using glfw3 and move window create/destruction and Vulkan surface creation to the game gui

  • Property mode set to 100644
File size: 478 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_vulkan.h>
8
9class GameGui_SDL : public GameGui {
10 public:
11 bool Init();
12 void Shutdown();
13
14 void* CreateWindow(const string& title, unsigned int width, unsigned int height);
15 void DestroyWindow();
16
17 bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
18
19 private:
20 SDL_Window* window;
21};
22
23#endif // _GAME_GUI_SDL_H
Note: See TracBrowser for help on using the repository browser.