#ifndef _GAME_GUI_SDL_H #define _GAME_GUI_SDL_H #include "game-gui.hpp" #include #include #include #ifdef GAMEGUI_INCLUDE_VULKAN #include #endif class GameGui_SDL : public GameGui { public: string& getError(); bool init(); void shutdown(); void* createWindow(const string& title, int width, int height, bool fullscreen); void destroyWindow(); void processEvents(); int pollEvent(UIEvent* event); void refreshWindowSize(); int getWindowWidth(); int getWindowHeight(); #ifdef GAMEGUI_INCLUDE_VULKAN bool createVulkanSurface(VkInstance instance, VkSurfaceKHR* surface); vector getRequiredExtensions(); #endif private: SDL_Window* window; int windowWidth, windowHeight; static string s_errorMessage; }; #endif // _GAME_GUI_SDL_H