8 #ifndef DRAWSYSTEM_HPP_
9 #define DRAWSYSTEM_HPP_
22 static const float DEFAULT_FPS_LIMIT = 60.0f;
40 DrawSystem(
EventManager &eventManager,
int width = 1920,
int height = 1080, std::string title =
"default");
43 std::string title =
"default");
55 std::shared_ptr<Window> _window;
57 float _fpsLimit = DEFAULT_FPS_LIMIT;
58 void _initDrawSystem();
59 void _setFpsLimit(
const float &newFpsLimit);
61 Debug::DebugMenu &_debugMenu;
Class representing the graphics rendering system.
Definition: DrawSystem.hpp:34
~DrawSystem()
destructor
Definition: DrawSystem.cpp:42
DrawSystem(EventManager &eventManager, int width=1920, int height=1080, std::string title="default")
constructor
Definition: DrawSystem.cpp:34
void operator()(SparseArray< TextComponent > &texts, SparseArray< TextureComponent > &textures, SparseArray< CameraComponent > &cameras)
overloaded of () operator, function that draws the textures on the window
Definition: DrawSystem.cpp:80
class to help create and manage all the event handlers
Definition: Event.hpp:135
Class representing a custom event wrapper for sf::Event.
Definition: SfmlTypes.hpp:29
Array which can have empty indexes.
Definition: SparseArray.hpp:19
Definition: AssetManager.hpp:15
Definition: DrawSystem.hpp:27
bool isEvent
Definition: DrawSystem.hpp:28
SEvent event
Definition: DrawSystem.hpp:29