source:
opengl-game/game-gui-sdl.hpp@
2beb6c7
| Last change on this file since 2beb6c7 was d5f2b42, checked in by , 6 years ago | |
|---|---|
|
|
| File size: 736 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: |
| [d5f2b42] | 13 | string& GetError(); |
| 14 | ||
| [f898c5f] | 15 | bool Init(); |
| 16 | void Shutdown(); | |
| [0e6ecf3] | 17 | |
| 18 | void* CreateWindow(const string& title, unsigned int width, unsigned int height); | |
| 19 | void DestroyWindow(); | |
| 20 | ||
| [4eb4d0a] | 21 | #ifdef GAMEGUI_INCLUDE_VULKAN |
| [0e6ecf3] | 22 | bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface); |
| [4eb4d0a] | 23 | #endif |
| 24 | ||
| [8667f76] | 25 | vector<const char*> GetRequiredExtensions(); |
| 26 | void GetWindowSize(int* width, int* height); | |
| [0e6ecf3] | 27 | |
| 28 | private: | |
| 29 | SDL_Window* window; | |
| [d5f2b42] | 30 | |
| 31 | static string s_errorMessage; | |
| [0e6ecf3] | 32 | }; |
| 33 | ||
| 34 | #endif // _GAME_GUI_SDL_H |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/medieval/chrome/site/your_project_logo.png)