ViewportRenderInstance

Summary

Remarks

Danger

All calls made within this class MUST be performed on the Master Thread. See Thread.RunLater on how to safely call this from an asynchronous thread. Failure to comply with this can cause catastrophical failures as the engine is not designed for this.

Definition

Namespace: SDT4.Managed.Renderer.XRP
Assembly: SDT4.Managed.Renderer.dll

sealed class ViewportRenderInstance
Inheritance:

ObjectViewportRenderInstance

Implements:

IDisposable, IRenderCanvasAttacher

Fields

Name Type Description

Properties

Name Type Description
public get; set; RenderCanvas RenderCanvas

Methods

public Void SetCameraActor(Actor actor)

Summary: Attaches the camera of an actor to this render instance

Remarks: If actor is not owned by the scene render instance that provided

Parameters:


public Void SetViewport(Vector2f extent, Vector2f offset)

Summary: Sets the render extent of the viewport on the canvas.

Remarks: Invalid regions get clamped.

Parameters:


public Void Dispose()