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

The U4DSceneLoadingState class represents the scene Loading 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 U4DSceneLoadingStatesharedInstance ()
 

Static Public Attributes

static U4DSceneLoadingStateinstance =0
 

Detailed Description

The U4DSceneLoadingState class represents the scene Loading state.

Member Function Documentation

◆ enter()

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

enters new state

Parameters
uScenescene to enter into new state

Implements U4DEngine::U4DSceneStateInterface.

◆ execute()

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

executes current state

Parameters
uScenescene to execute
dtgame tick

Implements U4DEngine::U4DSceneStateInterface.

◆ exit()

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

exits current state

Parameters
uScenescene to exit

Implements U4DEngine::U4DSceneStateInterface.

◆ isSafeToChangeState()

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

true if is safe to change states

Parameters
uScenecurrent scene

Implements U4DEngine::U4DSceneStateInterface.

◆ render()

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

Renders current scene.

Parameters
uScenescene to render
uRenderEncodermetal render encoder

Implements U4DEngine::U4DSceneStateInterface.