Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
EngineCore::ITickable Class Reference

This is the interface which is used to call a tick function on an object. Everything which should be able to tick has to implement this interface. More...

#include <Tick.h>

Inheritance diagram for EngineCore::ITickable:

Public Member Functions

virtual ~ITickable ()=default
virtual void preTick ()
 Function which executes immediately before the execution of ITickable::preTick()
virtual void tick (double deltaTimeSeconds)
 Function called each frame when a tick component has been registered with EnTT Ecs::Tick.
virtual void postTick ()
 Function which executes immediately after the execution of ITickable::postTick()

Detailed Description

This is the interface which is used to call a tick function on an object. Everything which should be able to tick has to implement this interface.

Definition at line 9 of file Tick.h.

Constructor & Destructor Documentation

◆ ~ITickable()

virtual EngineCore::ITickable::~ITickable ( )
virtualdefault

Member Function Documentation

◆ postTick()

void EngineCore::ITickable::postTick ( )
inlinevirtual

Function which executes immediately after the execution of ITickable::postTick()

Definition at line 34 of file Tick.h.

◆ preTick()

void EngineCore::ITickable::preTick ( )
inlinevirtual

Function which executes immediately before the execution of ITickable::preTick()

Definition at line 30 of file Tick.h.

◆ tick()

void EngineCore::ITickable::tick ( double deltaTimeSeconds)
inlinevirtual

Function called each frame when a tick component has been registered with EnTT Ecs::Tick.

Parameters
deltaTimeSecondsframe time between this frame and the last frame

Reimplemented in EngineCore::Actor, and EngineCore::Entity.

Definition at line 32 of file Tick.h.

Referenced by EngineCore::Entity::tick().

Here is the caller graph for this function:

The documentation for this class was generated from the following file:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Core/Tick.h