Table of Contents

Interface IEngineScene

Namespace
TileWorld.Engine.Hosting
Assembly
TileWorld.Engine.dll

Represents a lightweight application scene owned by SceneHostApplication.

public interface IEngineScene

Methods

OnEnter(SceneHostApplication)

Called when the scene becomes active.

void OnEnter(SceneHostApplication sceneHost)

Parameters

sceneHost SceneHostApplication

The scene host that now owns the scene.

OnExit()

Called before the scene is deactivated.

void OnExit()

Render(IRenderContext)

Renders the active scene into the supplied render context.

void Render(IRenderContext renderContext)

Parameters

renderContext IRenderContext

The render context for the current frame.

Update(FrameTime, FrameInput)

Updates the active scene for the current frame.

void Update(FrameTime frameTime, FrameInput input)

Parameters

frameTime FrameTime

The current frame timing snapshot.

input FrameInput

The current frame input snapshot.