Class WorldView¶
Namespace: Apogee.Host
Assembly: Apogee.Host.dll
The session's world drawn through its main camera (the entity with
public sealed class WorldView : IDisposable
Inheritance¶
Implements¶
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¶
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