ST_engine  0.3-ALPHA
Public Member Functions | List of all members
drawing_manager Class Reference

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)
 

Detailed Description

This object is responsible for issuing drawing commands and drawing the current level.

Definition at line 26 of file drawing_manager.hpp.

Constructor & Destructor Documentation

◆ drawing_manager()

drawing_manager::drawing_manager ( SDL_Window *  window,
message_bus gMessageBus 
)
Parameters
windowA pointer to an SDL_Window to bind the renderer to.
msg_busA pointer to the global message bus.
tsk_mngrA pointer to the global task_manager.

Definition at line 23 of file drawing_manager.cpp.

◆ ~drawing_manager()

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.

Member Function Documentation

◆ update()

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.

Parameters
tempa pointer to the data of the current level.
fpsthe current frames per second.
gConsolea console object.

Definition at line 72 of file drawing_manager.cpp.


The documentation for this class was generated from the following files: