feature/imgui-sdl
points-test
|
Last change
on this file since 9546928 was d5f2b42, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 6 years ago |
|
Create a generic GetError() function in game-gui that returns the last error returned by a call to some other function in game-gui
|
-
Property mode
set to
100644
|
|
File size:
736 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 |
|
|---|
| 11 | class GameGui_SDL : public GameGui {
|
|---|
| 12 | public:
|
|---|
| 13 | string& GetError();
|
|---|
| 14 |
|
|---|
| 15 | bool Init();
|
|---|
| 16 | void Shutdown();
|
|---|
| 17 |
|
|---|
| 18 | void* CreateWindow(const string& title, unsigned int width, unsigned int height);
|
|---|
| 19 | void DestroyWindow();
|
|---|
| 20 |
|
|---|
| 21 | #ifdef GAMEGUI_INCLUDE_VULKAN
|
|---|
| 22 | bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
|
|---|
| 23 | #endif
|
|---|
| 24 |
|
|---|
| 25 | vector<const char*> GetRequiredExtensions();
|
|---|
| 26 | void GetWindowSize(int* width, int* height);
|
|---|
| 27 |
|
|---|
| 28 | private:
|
|---|
| 29 | SDL_Window* window;
|
|---|
| 30 |
|
|---|
| 31 | static string s_errorMessage;
|
|---|
| 32 | };
|
|---|
| 33 |
|
|---|
| 34 | #endif // _GAME_GUI_SDL_H
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.