Untold Engine
Beta v0.0.16
docs
|
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... | |
The U4DSceneStateInterface class represents the scene state interface.
|
pure virtual |
enters new state
uScene | scene to enter into new state |
Implemented in U4DEngine::U4DSceneActiveState, U4DEngine::U4DSceneLoadingState, and U4DEngine::U4DSceneIdleState.
|
pure virtual |
executes current state
uScene | scene to execute |
dt | game tick |
Implemented in U4DEngine::U4DSceneActiveState, U4DEngine::U4DSceneLoadingState, and U4DEngine::U4DSceneIdleState.
|
pure virtual |
exits current state
uScene | scene to exit |
Implemented in U4DEngine::U4DSceneActiveState, U4DEngine::U4DSceneIdleState, and U4DEngine::U4DSceneLoadingState.
|
pure virtual |
true if is safe to change states
uScene | current scene |
Implemented in U4DEngine::U4DSceneActiveState, U4DEngine::U4DSceneIdleState, and U4DEngine::U4DSceneLoadingState.
|
pure virtual |
Renders current scene.
uScene | scene to render |
uRenderEncoder | metal render encoder |
Implemented in U4DEngine::U4DSceneActiveState, U4DEngine::U4DSceneLoadingState, and U4DEngine::U4DSceneIdleState.