Table of Contents

Class RenderTexture

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that renders all currently stored draw commands to a texture.

public class RenderTexture : Combinator<Texture>
Inheritance
RenderTexture
Inherited Members

Constructors

RenderTexture()

Initializes a new instance of the RenderTexture class.

public RenderTexture()

Properties

ClearColor

Gets or sets the color used to clear the framebuffer before rendering.

public Color ClearColor { get; set; }

Property Value

Color

ClearColorHtml

Gets or sets an XML representation of the clear color for serialization.

[Browsable(false)]
public string ClearColorHtml { get; set; }

Property Value

string

ClearMask

Gets or sets a value specifying which buffers to clear before rendering.

public ClearBufferMask ClearMask { get; set; }

Property Value

ClearBufferMask

Height

Gets or sets the height of the texture. If no value is specified, the texture buffer will be initialized to the height of the shader window.

public int? Height { get; set; }

Property Value

int?

InternalFormat

Gets or sets a value specifying the internal storage format of the render texture.

public PixelInternalFormat InternalFormat { get; set; }

Property Value

PixelInternalFormat

MagFilter

Gets or sets a value specifying the texture magnification filter.

public TextureMagFilter MagFilter { get; set; }

Property Value

TextureMagFilter

MinFilter

Gets or sets a value specifying the texture minification filter.

public TextureMinFilter MinFilter { get; set; }

Property Value

TextureMinFilter

RenderState

Gets the collection of configuration objects specifying the render states to be set when rendering the texture.

public StateConfigurationCollection RenderState { get; }

Property Value

StateConfigurationCollection

Width

Gets or sets the width of the texture. If no value is specified, the texture buffer will be initialized to the width of the shader window.

public int? Width { get; set; }

Property Value

int?

WrapS

Gets or sets a value specifying wrapping parameters for the column coordinates of the texture sampler.

public TextureWrapMode WrapS { get; set; }

Property Value

TextureWrapMode

WrapT

Gets or sets a value specifying wrapping parameters for the row coordinates of the texture sampler.

public TextureWrapMode WrapT { get; set; }

Property Value

TextureWrapMode

Methods

Process<TSource>(IObservable<TSource>)

Renders all currently stored draw commands to a texture whenever an observable sequence emits a notification.

public override IObservable<Texture> Process<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence of notifications used to start the render to texture.

Returns

IObservable<Texture>

A sequence returning the Texture object representing the render target, whenever the render to texture operation completes.

Type Parameters

TSource

The type of the elements in the source sequence.