Window class final
#include <Window.hpp>

Constructors, destructors, conversion operators

Window(const int width, const int height, const std::string& title = "")
~Window()

Public functions

void clear()
void handleEvents(SDL_Event& event)
void destroy()
void renderImage(SDL_Texture*const texture, const SDL_Rect*const src_dest, const SDL_Rect*const dest_rect, const double angle = 0, const SDL_Point* center = 0, const SDL_RendererFlip flip = SDL_FLIP_NONE) const
auto loadImage(const std::string& path) const -> SDL_Texture*
void freeImage(SDL_Texture*const image) const
void refresh() const
void resize(const std::string& title, const int width, const int height)
void minimize() const
void maximize() const
void setIcon(const std::string& filepath) const
void fill(const Color& color)
void print(const std::string& text, const int x, const int y, const int size, const Color& color = Color(ColorName::BLACK), const int style = FontStyle::NORMAL) const
void drawBox(const Rectangle& rect, const int border_radius, const Color& color = Color(ColorName::WHITE)) const
void drawOverlay(const Color& color = Color(ColorName::WHITE)) const
void setBackgroundColor(const Color& color = Color(ColorName::BLACK))
void setTitle(const std::string& title)
auto getWidth() const -> int
auto getCenter() const -> b2Vec2
auto getHeight() const -> int
auto getRenderer() const -> SDL_Renderer*
void delayFramerateIfNeeded()