Antkeeper
0.0.1
|
#include <sdl-window-manager.hpp>
Public Member Functions | |
sdl_window_manager () | |
Constructs an SDL window manager. More... | |
~sdl_window_manager () override | |
Destructs an SDL window manager. More... | |
void | update () override |
Updates all managed windows. More... | |
std::shared_ptr< window > | create_window (const std::string &title, const math::ivec2 &windowed_position, const math::ivec2 &windowed_size, bool maximized, bool fullscreen, bool v_sync) override |
std::size_t | get_display_count () const override |
Returns the number of available displays. More... | |
const display & | get_display (std::size_t index) const override |
Returns the display with the given index. More... | |
![]() | |
virtual | ~window_manager ()=default |
Destructs a window manager. More... | |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< window_manager > | instance () |
Allocates and returns a window manager. More... | |
Definition at line 36 of file sdl-window-manager.hpp.
app::sdl_window_manager::sdl_window_manager | ( | ) |
Constructs an SDL window manager.
Definition at line 29 of file sdl-window-manager.cpp.
|
override |
Destructs an SDL window manager.
Definition at line 94 of file sdl-window-manager.cpp.
|
overridevirtual |
Implements app::window_manager.
Definition at line 102 of file sdl-window-manager.cpp.
|
overridevirtual |
Returns the display with the given index.
index | Index of a display. |
Implements app::window_manager.
Definition at line 427 of file sdl-window-manager.cpp.
|
overridevirtual |
Returns the number of available displays.
Implements app::window_manager.
Definition at line 422 of file sdl-window-manager.cpp.
|
overridevirtual |
Updates all managed windows.
This should be called once per frame.
Implements app::window_manager.
Definition at line 129 of file sdl-window-manager.cpp.