source:
opengl-game/game-gui-sdl.hpp@
99d44b2
Last change on this file since 99d44b2 was 4eb4d0a, checked in by , 5 years ago | |
---|---|
|
|
File size: 672 bytes |
Rev | Line | |
---|---|---|
[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] | 11 | class 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.