Skip to content

Class WorldView

Namespace: Apogee.Host
Assembly: Apogee.Host.dll

The session's world drawn through its main camera (the entity with ), with the ImGui frame over it. Nothing is made until a world has such a camera: a script that only has panels never compiles the scene shaders, and keeps drawing its panels over the plain background.

public sealed class WorldView : IDisposable

Inheritance

object ← WorldView

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

WorldView(GraphicsDevice, ShaderLibrary, ScriptSession, IRenderOverlay)

public WorldView(GraphicsDevice device, ShaderLibrary shaders, ScriptSession session, IRenderOverlay overlay)

Parameters

device GraphicsDevice

shaders ShaderLibrary

session ScriptSession

overlay IRenderOverlay

Properties

Renderer

The renderer of the scene, once there has been a frame that needed it.

public SceneRenderer? Renderer { get; }

Property Value

SceneRenderer?

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

TryDraw(Frame, in RenderTarget)

Records the frame into frame, ending with the image in target, and returns true; or returns false, recording nothing, when the world has no main camera.

public bool TryDraw(Frame frame, in RenderTarget target)

Parameters

frame Frame

target RenderTarget

Returns

bool