Draws every entity that has a Transform and a SpriteData.
More...
#include <systems/RenderSystem.hpp>
|
| | RenderSystem (std::reference_wrapper< WindowType > window) |
| | Creates the system.
|
| |
|
void | onStart (rtk::ecs::Registry &) override |
| | Logs that the system is loaded.
|
| |
| void | update (rtk::ecs::Registry ®, float) override |
| | Copies transforms into sprites and draws one frame.
|
| |
|
void | onStop (rtk::ecs::Registry &) override |
| | Does nothing.
|
| |
Draws every entity that has a Transform and a SpriteData.
- Template Parameters
-
| WindowType | Window satisfying IsRenderWindow. |
◆ RenderSystem()
Creates the system.
- Parameters
-
| window | Window to draw into. |
◆ update()
Copies transforms into sprites and draws one frame.
- Parameters
-
| reg | Registry holding the entities. |