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

The U4DSceneIdleState class represents the scene Idle state. More...

Inherits U4DEngine::U4DSceneStateInterface.

Public Member Functions

void enter (U4DScene *uScene)
 enters new state More...
 
void execute (U4DScene *uScene, double dt)
 executes current state More...
 
void render (U4DScene *uScene, id< MTLCommandBuffer > uCommandBuffer)
 Renders current scene. More...
 
void exit (U4DScene *uScene)
 exits current state More...
 
bool isSafeToChangeState (U4DScene *uScene)
 true if is safe to change states More...
 
- Public Member Functions inherited from U4DEngine::U4DSceneStateInterface
virtual ~U4DSceneStateInterface ()
 Scene Interface destructor.
 

Static Public Member Functions

static U4DSceneIdleStatesharedInstance ()
 

Static Public Attributes

static U4DSceneIdleStateinstance =0
 

Detailed Description

The U4DSceneIdleState class represents the scene Idle state.

Member Function Documentation

◆ enter()

void U4DEngine::U4DSceneIdleState::enter ( U4DScene uScene)
virtual

enters new state

Parameters
uScenescene to enter into new state

Implements U4DEngine::U4DSceneStateInterface.

◆ execute()

void U4DEngine::U4DSceneIdleState::execute ( U4DScene uScene,
double  dt 
)
virtual

executes current state

Parameters
uScenescene to execute
dtgame tick

Implements U4DEngine::U4DSceneStateInterface.

◆ exit()

void U4DEngine::U4DSceneIdleState::exit ( U4DScene uScene)
virtual

exits current state

Parameters
uScenescene to exit

Implements U4DEngine::U4DSceneStateInterface.

◆ isSafeToChangeState()

bool U4DEngine::U4DSceneIdleState::isSafeToChangeState ( U4DScene uScene)
virtual

true if is safe to change states

Parameters
uScenecurrent scene

Implements U4DEngine::U4DSceneStateInterface.

◆ render()

void U4DEngine::U4DSceneIdleState::render ( U4DScene uScene,
id< MTLCommandBuffer >  uCommandBuffer 
)
virtual

Renders current scene.

Parameters
uScenescene to render
uRenderEncodermetal render encoder

Implements U4DEngine::U4DSceneStateInterface.