ST_engine
0.3-ALPHA
|
This object is responsible for managing the window. More...
#include <window_manager.hpp>
Public Member Functions | |
window_manager (message_bus &gMessageBus, task_manager &gTask_manager, const std::string &window_name) | |
~window_manager () | |
void | update () |
SDL_Window * | get_window () |
This object is responsible for managing the window.
Definition at line 20 of file window_manager.hpp.
window_manager::window_manager | ( | message_bus & | gMessageBus, |
task_manager & | gTask_manager, | ||
const std::string & | window_name | ||
) |
Initializes the window and SDL.
msg_bus | a pointer to the global message bus |
tsk_mngr | a pointer to the global task manager |
Definition at line 33 of file window_manager.cpp.
window_manager::~window_manager | ( | ) |
Closes the Window Manager. Destroys the window and quits SDL.
Definition at line 20 of file window_manager.cpp.
SDL_Window * window_manager::get_window | ( | ) |
Definition at line 126 of file window_manager.cpp.
void window_manager::update | ( | ) |
Starts an the update_task() method using the task manager.
Definition at line 170 of file window_manager.cpp.