37void set_icon(
const std::string& path);
void set_icon(const std::string &path)
Set the icon to display on the window. If it does not exist, this will silently fail.
asw::Vec2< float > get_scale()
Get the scale of the window. This is equivalent to the logical size divided by the actual size.
void set_fullscreen(bool fullscreen)
Set the window to fullscreen or windowed.
asw::Vec2< int > get_logical_size()
Get the logical size of the window. This may differ from the actual size if scaling is enabled.
void set_blend_mode(asw::BlendMode mode)
Set the blend mode of a texture.
void reset_render_target()
Reset the render target to the default.
asw::Vec2< int > get_size()
Get the size of the window.
void present()
Present the window.
void set_render_target(const asw::Texture &texture)
Set the render target to the window.
void clear()
Clear the window.
asw::Renderer * renderer
The renderer for the display module.
void set_title(const std::string &title)
Set the title of the window.
void set_resolution(int w, int h)
Set the resolution of the window.
asw::Window * window
The window for the display module.
void set_resizable(bool resizable)
Set resizable flag of the window.
std::shared_ptr< SDL_Texture > Texture
Alias for a shared pointer to an SDL_Texture.
BlendMode
Mappings from SDL_BLENDMODE to ASW BlendMode.
SDL_Window Window
Alias for a shared pointer to an SDL_Window.
SDL_Renderer Renderer
Alias for a shared pointer to an SDL_Renderer.
RGBA color struct with 8-bit channels.
Types used throughout the ASW library.