ViewportRenderInstance
Summary
Remarks
Danger
All calls made within this class MUST be performed on the Master Thread.
See
Definition
Namespace: SDT4.Managed.Renderer.XRP
Assembly: SDT4.Managed.Renderer.dll
sealed class ViewportRenderInstance
Inheritance:
Object ➔ ViewportRenderInstance
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
Parameters:
actor(Actor):
public Void SetViewport(Vector2f extent, Vector2f offset)
Summary
Sets the render extent of the viewport on the canvas.
Remarks
Invalid regions get clamped.
Parameters: