|
R-Type
|
Class representing the graphics rendering system. More...
#include <DrawSystem.hpp>
Public Member Functions | |
| DrawSystem (EventManager &eventManager, int width=1920, int height=1080, std::string title="default") | |
| constructor More... | |
| ~DrawSystem () | |
| destructor More... | |
| void | operator() (SparseArray< TextComponent > &texts, SparseArray< TextureComponent > &textures, SparseArray< CameraComponent > &cameras) |
| overloaded of () operator, function that draws the textures on the window More... | |
Class representing the graphics rendering system.
| GameEngine::DrawSystem::DrawSystem | ( | EventManager & | eventManager, |
| int | width = 1920, |
||
| int | height = 1080, |
||
| std::string | title = "default" |
||
| ) |
constructor
| width | Width of the window. |
| height | Height of the window. |
| title | Title of the window. |
| GameEngine::DrawSystem::~DrawSystem | ( | ) |
destructor
| void GameEngine::DrawSystem::operator() | ( | SparseArray< TextComponent > & | texts, |
| SparseArray< TextureComponent > & | textures, | ||
| SparseArray< CameraComponent > & | cameras | ||
| ) |
overloaded of () operator, function that draws the textures on the window
| texts | Array that contains the text components of the game |
| textures | Array that contains the texture components of the game |