![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Basic system that synchronizes animation states based on movement state events. More...
#include <Render.hpp>
Public Member Functions | |
Render (Systems &owner) | |
Creates the render system. More... | |
virtual | ~Render ()=default |
Destroys the render system. More... | |
void | updateShadow (bl::ecs::Entity entity, float distance, float radius) |
Adds or updates the shadow of the given entity. More... | |
void | removeShadow (bl::ecs::Entity entity) |
Removes the shadow from the given entity. More... | |
bl::rc::RenderTarget & | getMainRenderTarget () |
Returns the engine observer that the main game is rendering to. More... | |
void | setMainRenderTarget (bl::rc::RenderTarget &target) |
Sets the main render target. Used by the editor. More... | |
Basic system that synchronizes animation states based on movement state events.
Definition at line 20 of file Render.hpp.
core::system::Render::Render | ( | Systems & | owner | ) |
Creates the render system.
owner | The game systems |
Definition at line 10 of file Render.cpp.
|
virtualdefault |
Destroys the render system.
|
inline |
Returns the engine observer that the main game is rendering to.
Definition at line 55 of file Render.hpp.
void core::system::Render::removeShadow | ( | bl::ecs::Entity | entity | ) |
Removes the shadow from the given entity.
entity | The entity to remove the shadow from |
Definition at line 97 of file Render.cpp.
void core::system::Render::setMainRenderTarget | ( | bl::rc::RenderTarget & | target | ) |
Sets the main render target. Used by the editor.
target | The render target the world gets rendered to |
Definition at line 105 of file Render.cpp.
void core::system::Render::updateShadow | ( | bl::ecs::Entity | entity, |
float | distance, | ||
float | radius | ||
) |
Adds or updates the shadow of the given entity.
entity | The entity to add the shadow to |
distance | How far below the renderable to render the shadow |
radius | The radius of the shadow in pixels |
Definition at line 58 of file Render.cpp.