Simple3D
Search Results for

    Show / Hide Table of Contents

    Class RenderTarget

    A fixed-size render target whose pixel and picking storage is reused on each render.

    Inheritance
    object
    RenderTarget
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 Source

    RenderTarget(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 Source

    Height

    Height in physical pixels.

    Declaration
    public int Height { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Labels

    Projected labels from the most recent render.

    Declaration
    public IReadOnlyList<ProjectedLabel> Labels { get; }
    Property Value
    Type Description
    IReadOnlyList<ProjectedLabel>
    | Edit this page View Source

    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>
    | Edit this page View Source

    RasterSamples

    Clipped triangle bounding-box samples evaluated by the most recent successful render.

    Declaration
    public long RasterSamples { get; }
    Property Value
    Type Description
    long
    | Edit this page View Source

    Width

    Width in physical pixels.

    Declaration
    public int Width { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Pick(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
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX