source: opengl-game/game-gui-sdl.hpp@ 5f3dba8

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

Create a transparent texture in SDL and render some sample images and shapes onto it

  • Property mode set to 100644
File size: 634 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 bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
20 vector<const char*> GetRequiredExtensions();
21 void GetWindowSize(int* width, int* height);
22
23 private:
24 SDL_Window* window;
25};
26
27#endif // _GAME_GUI_SDL_H
Note: See TracBrowser for help on using the repository browser.