0.44.0
|
#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 iEntitySystemModule & | getInstance () |
static IGOR_INLINE bool | isInstantiated () |
static void | create () |
static void | destroy () |
Protected Member Functions inherited from igor::iModule< iEntitySystemModule > | |
iModule ()=default | |
virtual | ~iModule ()=default |
entity system module
manages and updates all entity systems created
iEntityScenePtr igor::iEntitySystemModule::createScene | ( | ) |
creates a scene and returns it
float64 igor::iEntitySystemModule::getSimulationRate | ( | ) |
renders all scenes
void igor::iEntitySystemModule::onUpdate | ( | ) |
updates all scenes and cleans up scene lists
void igor::iEntitySystemModule::setSimulationRate | ( | float64 | simulationRate | ) |
set's the simulation rate in Hz
default is 60Hz
simulationRate | simulation rate in Hz |
void igor::iEntitySystemModule::start | ( | ) |
starts/continues the entity systems to run
void igor::iEntitySystemModule::stop | ( | ) |
stops the entity system to run (except rendering)
|
friend |