Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DSceneStateManager Class Reference

The U4DSceneStateManager class represents the scene state manager. It manages the states of the scenes. More...

Public Member Functions

 U4DSceneStateManager (U4DScene *uScene)
 scene state manager constructor More...
 
 ~U4DSceneStateManager ()
 scene state manager destructor
 
void changeState (U4DSceneStateInterface *uState)
 changes the state of the scene More...
 
void update (double dt)
 updates the scene More...
 
void render (id< MTLCommandBuffer > uCommandBuffer)
 Renders current scene. More...
 
bool isSafeToChangeState ()
 sets to true if it is safe to change the scene state
 
void safeChangeState (U4DSceneStateInterface *uState)
 safe to change scene state More...
 
U4DSceneStateInterfacegetCurrentState ()
 returns the current scene state
 

Detailed Description

The U4DSceneStateManager class represents the scene state manager. It manages the states of the scenes.

Constructor & Destructor Documentation

◆ U4DSceneStateManager()

U4DEngine::U4DSceneStateManager::U4DSceneStateManager ( U4DScene uScene)

scene state manager constructor

Parameters
uScenecurrent scene

Member Function Documentation

◆ changeState()

void U4DEngine::U4DSceneStateManager::changeState ( U4DSceneStateInterface uState)

changes the state of the scene

Parameters
uStatescene state to change to

◆ render()

void U4DEngine::U4DSceneStateManager::render ( id< MTLCommandBuffer >  uCommandBuffer)

Renders current scene.

Parameters
uScenescene to render
uRenderEncodermetal render encoder

◆ safeChangeState()

void U4DEngine::U4DSceneStateManager::safeChangeState ( U4DSceneStateInterface uState)

safe to change scene state

Parameters
uStatescene state to change to

◆ update()

void U4DEngine::U4DSceneStateManager::update ( double  dt)

updates the scene

Parameters
dtgame tick