source: opengl-game/game-gui-sdl.hpp@ 9cd92ae

feature/imgui-sdl points-test
Last change on this file since 9cd92ae 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
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
19 bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
[8667f76]20 vector<const char*> GetRequiredExtensions();
21 void GetWindowSize(int* width, int* height);
[0e6ecf3]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.