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

#include <Ticker.h>

Collaboration diagram for EngineCore::Ticker:

Public Member Functions

 Ticker ()=delete
 Ticker (uint32_t amountOfTickables)
 ~Ticker ()=default
uint32_t addTickable (ITickable *tickable)
void removeTickable (uint32_t tickId)
void tick (double deltaTime)

Private Attributes

std::stack< uint32_t > tickIds
std::map< uint32_t, ITickable * > allTickables

Detailed Description

Definition at line 8 of file Ticker.h.

Constructor & Destructor Documentation

◆ Ticker() [1/2]

EngineCore::Ticker::Ticker ( )
delete

◆ Ticker() [2/2]

EngineCore::Ticker::Ticker ( uint32_t amountOfTickables)

Definition at line 8 of file Ticker.cpp.

References tickIds.

◆ ~Ticker()

EngineCore::Ticker::~Ticker ( )
default

Member Function Documentation

◆ addTickable()

uint32_t EngineCore::Ticker::addTickable ( ITickable * tickable)

Definition at line 16 of file Ticker.cpp.

References allTickables, and tickIds.

◆ removeTickable()

void EngineCore::Ticker::removeTickable ( uint32_t tickId)

Definition at line 29 of file Ticker.cpp.

References allTickables, and tickIds.

◆ tick()

void EngineCore::Ticker::tick ( double deltaTime)

Definition at line 34 of file Ticker.cpp.

Member Data Documentation

◆ allTickables

std::map<uint32_t, ITickable*> EngineCore::Ticker::allTickables
private

Definition at line 21 of file Ticker.h.

Referenced by addTickable(), and removeTickable().

◆ tickIds

std::stack<uint32_t> EngineCore::Ticker::tickIds
private

Definition at line 20 of file Ticker.h.

Referenced by addTickable(), removeTickable(), and Ticker().


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