Class Engine::AnimationSystem¶
ClassList > Engine > AnimationSystem
System that updates animation frames and renders the current frame based onPosition .
#include <AnimationSystem.hpp>
Inherits the following classes: Engine::LayeredRenderSystem
Public Attributes inherited from Engine::System¶
See Engine::System
| Type | Name |
|---|---|
| std::set< Entity > | m_Entities |
Public Functions¶
| Type | Name |
|---|---|
| virtual bool | CanDraw (Registry & registry, Entity entity, bool screenSpace) override True if entity has anAnimation component and belongs to this pass. |
| virtual void | DrawEntity (Registry & registry, Entity entity) override Draws the entity's current animation frame at Position plus offset. |
| virtual void | Update (Registry & registry, float dt) override Advances animation timers and frame indices for all entities with Animation . |
Public Functions inherited from Engine::LayeredRenderSystem¶
See Engine::LayeredRenderSystem
| Type | Name |
|---|---|
| virtual bool | CanDraw (Registry & registry, Entity entity, bool screenSpace) = 0 Whether this system draws entity in the given pass. |
| virtual void | DrawEntity (Registry & registry, Entity entity) = 0 Draws a single entity. Only called when CanDraw returned true. |
Public Functions inherited from Engine::System¶
See Engine::System
| Type | Name |
|---|---|
| virtual void | OnSceneUnloaded (Registry & registry) Called right before the current scene's entities are destroyed. |
| virtual void | Render (Registry & registry) World pass: drawn inside the active camera. |
| virtual void | RenderScreen (Registry & registry) Screen pass: drawn after the world, in window pixels. |
| virtual void | Update (Registry & registry, float dt) |
| virtual | ~System () = default |
Public Functions Documentation¶
function CanDraw¶
True if entity has anAnimation component and belongs to this pass.
virtual bool Engine::AnimationSystem::CanDraw (
Registry & registry,
Entity entity,
bool screenSpace
) override
Implements Engine::LayeredRenderSystem::CanDraw
function DrawEntity¶
Draws the entity's current animation frame at Position plus offset.
Implements Engine::LayeredRenderSystem::DrawEntity
function Update¶
Advances animation timers and frame indices for all entities with Animation .
Implements Engine::System::Update
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Systems/AnimationSystem.hpp