igor::iEntitySystemModule Class Reference

#include <iEntitySystemModule.h>

Inherits igor::iModule< iEntitySystemModule >.

Public Member Functions

iEntityScenePtr createScene ()
 
void onUpdate ()
 
void onRender (float32 clientWidth, float32 clientHeight)
 
void start ()
 
void stop ()
 
void setSimulationRate (float64 simulationRate)
 
float64 getSimulationRate ()
 

Friends

class iModule< iEntitySystemModule >
 

Additional Inherited Members

- Static Public Member Functions inherited from igor::iModule< iEntitySystemModule >
static IGOR_INLINE iEntitySystemModulegetInstance ()
 
static IGOR_INLINE bool isInstantiated ()
 
static void create ()
 
static void destroy ()
 
- Protected Member Functions inherited from igor::iModule< iEntitySystemModule >
 iModule ()=default
 
virtual ~iModule ()=default
 

Detailed Description

entity system module

manages and updates all entity systems created

Member Function Documentation

◆ createScene()

iEntityScenePtr igor::iEntitySystemModule::createScene ( )

creates a scene and returns it

Returns
new created scene

◆ getSimulationRate()

float64 igor::iEntitySystemModule::getSimulationRate ( )
Returns
simulation rate

◆ onRender()

void igor::iEntitySystemModule::onRender ( float32  clientWidth,
float32  clientHeight 
)

renders all scenes

◆ onUpdate()

void igor::iEntitySystemModule::onUpdate ( )

updates all scenes and cleans up scene lists

◆ setSimulationRate()

void igor::iEntitySystemModule::setSimulationRate ( float64  simulationRate)

set's the simulation rate in Hz

default is 60Hz

Parameters
simulationRatesimulation rate in Hz

◆ start()

void igor::iEntitySystemModule::start ( )

starts/continues the entity systems to run

◆ stop()

void igor::iEntitySystemModule::stop ( )

stops the entity system to run (except rendering)

Friends And Related Function Documentation

◆ iModule< iEntitySystemModule >

friend class iModule< iEntitySystemModule >
friend

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