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

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 ()
 

Detailed Description

This object is responsible for managing the window.

Definition at line 20 of file window_manager.hpp.

Constructor & Destructor Documentation

◆ window_manager()

window_manager::window_manager ( message_bus gMessageBus,
task_manager gTask_manager,
const std::string &  window_name 
)

Initializes the window and SDL.

Parameters
msg_busa pointer to the global message bus
tsk_mngra pointer to the global task manager

Definition at line 33 of file window_manager.cpp.

◆ ~window_manager()

window_manager::~window_manager ( )

Closes the Window Manager. Destroys the window and quits SDL.

Definition at line 20 of file window_manager.cpp.

Member Function Documentation

◆ get_window()

SDL_Window * window_manager::get_window ( )
Returns
Returns a handle to the SDL_Window*

Definition at line 126 of file window_manager.cpp.

◆ update()

void window_manager::update ( )

Starts an the update_task() method using the task manager.

Definition at line 170 of file window_manager.cpp.


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