ST_engine
0.3-ALPHA
|
This object is responsible for issuing drawing commands and drawing the current level. More...
#include <drawing_manager.hpp>
Public Member Functions | |
drawing_manager (SDL_Window *window, message_bus &gMessageBus) | |
~drawing_manager () | |
void | update (const ST::level &temp, float fps, console &gConsole, ST::metrics metrics) |
This object is responsible for issuing drawing commands and drawing the current level.
Definition at line 26 of file drawing_manager.hpp.
drawing_manager::drawing_manager | ( | SDL_Window * | window, |
message_bus & | gMessageBus | ||
) |
window | A pointer to an SDL_Window to bind the renderer to. |
msg_bus | A pointer to the global message bus. |
tsk_mngr | A pointer to the global task_manager. |
Definition at line 23 of file drawing_manager.cpp.
drawing_manager::~drawing_manager | ( | ) |
Closes the drawing manager. Quits the Font subsystem and destroys the renderer object.
Definition at line 500 of file drawing_manager.cpp.
void drawing_manager::update | ( | const ST::level & | temp, |
float | fps, | ||
console & | gConsole, | ||
ST::metrics | metrics | ||
) |
Consumes messages from the subscriber object. Performs all drawing operations.
temp | a pointer to the data of the current level. |
fps | the current frames per second. |
gConsole | a console object. |
Definition at line 72 of file drawing_manager.cpp.