|
ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
|
Display and window routines for the ASW library. More...
Go to the source code of this file.
Namespaces | |
| namespace | asw |
| namespace | asw::display |
Functions | |
| void | asw::display::set_title (const std::string &title) |
| Set the title of the window. | |
| void | asw::display::set_icon (const std::string &path) |
| Set the icon to display on the window. If it does not exist, this will silently fail. | |
| void | asw::display::set_fullscreen (bool fullscreen) |
| Set the window to fullscreen or windowed. | |
| void | asw::display::set_resolution (int w, int h) |
| Set the resolution of the window. | |
| void | asw::display::set_resizable (bool resizable) |
| Set resizable flag of the window. | |
| asw::Vec2< int > | asw::display::get_size () |
| Get the size of the window. | |
| asw::Vec2< int > | asw::display::get_logical_size () |
| Get the logical size of the window. This may differ from the actual size if scaling is enabled. | |
| asw::Vec2< float > | asw::display::get_scale () |
| Get the scale of the window. This is equivalent to the logical size divided by the actual size. | |
| void | asw::display::set_render_target (const asw::Texture &texture) |
| Set the render target to the window. | |
| void | asw::display::reset_render_target () |
| Reset the render target to the default. | |
| void | asw::display::clear () |
| Clear the window. | |
| void | asw::display::clear (const asw::Color &color) |
| Clear to colour. | |
| void | asw::display::present () |
| Present the window. | |
| void | asw::display::set_blend_mode (asw::BlendMode mode) |
| Set the blend mode of a texture. | |
Variables | |
| asw::Renderer * | asw::display::renderer = nullptr |
| The renderer for the display module. | |
| asw::Window * | asw::display::window = nullptr |
| The window for the display module. | |
Display and window routines for the ASW library.
Definition in file display.h.