Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DSceneStateInterface Class Referenceabstract

The U4DSceneStateInterface class represents the scene state interface. More...

Inherited by U4DEngine::U4DSceneActiveState, U4DEngine::U4DSceneIdleState, and U4DEngine::U4DSceneLoadingState.

Public Member Functions

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

Detailed Description

The U4DSceneStateInterface class represents the scene state interface.

Member Function Documentation

◆ enter()

virtual void U4DEngine::U4DSceneStateInterface::enter ( U4DScene uScene)
pure virtual

enters new state

Parameters
uScenescene to enter into new state

Implemented in U4DEngine::U4DSceneActiveState, U4DEngine::U4DSceneLoadingState, and U4DEngine::U4DSceneIdleState.

◆ execute()

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

executes current state

Parameters
uScenescene to execute
dtgame tick

Implemented in U4DEngine::U4DSceneActiveState, U4DEngine::U4DSceneLoadingState, and U4DEngine::U4DSceneIdleState.

◆ exit()

virtual void U4DEngine::U4DSceneStateInterface::exit ( U4DScene uScene)
pure virtual

exits current state

Parameters
uScenescene to exit

Implemented in U4DEngine::U4DSceneActiveState, U4DEngine::U4DSceneIdleState, and U4DEngine::U4DSceneLoadingState.

◆ isSafeToChangeState()

virtual bool U4DEngine::U4DSceneStateInterface::isSafeToChangeState ( U4DScene uScene)
pure virtual

true if is safe to change states

Parameters
uScenecurrent scene

Implemented in U4DEngine::U4DSceneActiveState, U4DEngine::U4DSceneIdleState, and U4DEngine::U4DSceneLoadingState.

◆ render()

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

Renders current scene.

Parameters
uScenescene to render
uRenderEncodermetal render encoder

Implemented in U4DEngine::U4DSceneActiveState, U4DEngine::U4DSceneLoadingState, and U4DEngine::U4DSceneIdleState.