R-Type
Public Member Functions | List of all members
GameEngine::DrawSystem Class Reference

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...
 

Detailed Description

Class representing the graphics rendering system.

Constructor & Destructor Documentation

◆ DrawSystem()

GameEngine::DrawSystem::DrawSystem ( EventManager eventManager,
int  width = 1920,
int  height = 1080,
std::string  title = "default" 
)

constructor

Parameters
widthWidth of the window.
heightHeight of the window.
titleTitle of the window.

◆ ~DrawSystem()

GameEngine::DrawSystem::~DrawSystem ( )

destructor

Member Function Documentation

◆ operator()()

void GameEngine::DrawSystem::operator() ( SparseArray< TextComponent > &  texts,
SparseArray< TextureComponent > &  textures,
SparseArray< CameraComponent > &  cameras 
)

overloaded of () operator, function that draws the textures on the window

Parameters
textsArray that contains the text components of the game
texturesArray that contains the texture components of the game

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