Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | List of all members
core::system::Render Class Reference

Basic system that synchronizes animation states based on movement state events. More...

#include <Render.hpp>

+ Inheritance diagram for core::system::Render:

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

Detailed Description

Basic system that synchronizes animation states based on movement state events.

Definition at line 20 of file Render.hpp.

Constructor & Destructor Documentation

◆ Render()

core::system::Render::Render ( Systems owner)

Creates the render system.

Parameters
ownerThe game systems

Definition at line 10 of file Render.cpp.

◆ ~Render()

virtual core::system::Render::~Render ( )
virtualdefault

Destroys the render system.

Member Function Documentation

◆ getMainRenderTarget()

bl::rc::RenderTarget& core::system::Render::getMainRenderTarget ( )
inline

Returns the engine observer that the main game is rendering to.

Definition at line 55 of file Render.hpp.

◆ removeShadow()

void core::system::Render::removeShadow ( bl::ecs::Entity  entity)

Removes the shadow from the given entity.

Parameters
entityThe entity to remove the shadow from

Definition at line 97 of file Render.cpp.

◆ setMainRenderTarget()

void core::system::Render::setMainRenderTarget ( bl::rc::RenderTarget &  target)

Sets the main render target. Used by the editor.

Parameters
targetThe render target the world gets rendered to

Definition at line 105 of file Render.cpp.

◆ updateShadow()

void core::system::Render::updateShadow ( bl::ecs::Entity  entity,
float  distance,
float  radius 
)

Adds or updates the shadow of the given entity.

Parameters
entityThe entity to add the shadow to
distanceHow far below the renderable to render the shadow
radiusThe radius of the shadow in pixels

Definition at line 58 of file Render.cpp.


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