14 #ifndef GK_WINDOW_HPP_ 15 #define GK_WINDOW_HPP_ 28 void open(
const std::string &caption,
u16 width,
u16 height);
45 using SDL_WindowPtr = std::unique_ptr<SDL_Window, decltype(&SDL_DestroyWindow)>;
60 #endif // GK_WINDOW_HPP_
SDL_GLContextPtr m_context
2D view that defines what is shown on screen
std::unique_ptr< SDL_Window, decltype(&SDL_DestroyWindow)> SDL_WindowPtr
void setVerticalSyncEnabled(bool enabled)
const View & getDefaultView() const override
void open(const std::string &caption, u16 width, u16 height)
std::unique_ptr< void, decltype(&SDL_GL_DeleteContext)> SDL_GLContextPtr
SDL_Window * window() const
Vector2u getSize() const override