Class RenderTarget
A fixed-size render target whose pixel and picking storage is reused on each render.
Inherited Members
Namespace: Simple3D.Core
Assembly: Simple3D.Core.dll
Syntax
public sealed class RenderTarget
Remarks
Content is overwritten by RenderInto(Scene, Camera, RenderTarget, uint). Copy pixels or use Render(Scene, Camera, int, int, uint) when a snapshot must survive later renders.
Constructors
| Edit this page View SourceRenderTarget(int, int)
Allocates a reusable target with dimensions from 1 to 2048.
Declaration
public RenderTarget(int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | |
| int | height |
Properties
| Edit this page View SourceHeight
Height in physical pixels.
Declaration
public int Height { get; }
Property Value
| Type | Description |
|---|---|
| int |
Labels
Projected labels from the most recent render.
Declaration
public IReadOnlyList<ProjectedLabel> Labels { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<ProjectedLabel> |
Pixels
Pixels from the most recent render; the same storage is overwritten on the next render.
Declaration
public ReadOnlyMemory<uint> Pixels { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyMemory<uint> |
RasterSamples
Clipped triangle bounding-box samples evaluated by the most recent successful render.
Declaration
public long RasterSamples { get; }
Property Value
| Type | Description |
|---|---|
| long |
Width
Width in physical pixels.
Declaration
public int Width { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourcePick(int, int)
Returns the visible leaf shape at a physical pixel in the most recent render.
Declaration
public Shape? Pick(int x, int y)
Parameters
| Type | Name | Description |
|---|---|---|
| int | x | |
| int | y |
Returns
| Type | Description |
|---|---|
| Shape |