Table of Contents

Class CreateWindow

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that creates the shader window with the specified display style and render settings.

[TypeConverter(typeof(SettingsConverter))]
public class CreateWindow : Source<ShaderWindow>
Inheritance
CreateWindow
Inherited Members

Constructors

CreateWindow()

Initializes a new instance of the CreateWindow class.

Properties

ClearColor

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

ClearColorHtml

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

ClearMask

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

CursorVisible

Gets or sets a value specifying whether to hide or show the mouse cursor over the shader window.

DisplayDevice

Gets or sets a value specifying the display device index on which to create the shader window.

GraphicsMode

Gets or sets a value specifying the graphics mode of the shader window.

Height

Gets or sets the height of the shader window, in pixels.

Location

Gets or sets a value specifying the starting location of the shader window. If no value is specified, the window will be located at the center of the screen.

RenderState

Gets the collection of configuration objects specifying the initial render state of the shader window graphics context.

SwapSync

Gets or sets a value specifying whether to synchronize buffer swaps across application windows.

TargetRenderFrequency

Gets or sets a value specifying the target render frequency. A value of zero indicates the maximum possible frequency will be used to generate render events.

TargetUpdateFrequency

Gets or sets a value specifying the target update frequency. If no value is specified, the value of the target render frequency will be used.

Title

Gets or sets the title of the shader window.

VSync

Gets or sets a value specifying the V-Sync configuration for shader window buffer swaps.

Width

Gets or sets the width of the shader window, in pixels.

WindowBorder

Gets or sets a value specifying the shader window border.

WindowState

Gets or sets a value specifying the starting state of the shader window.

Methods

Generate()

Generates an observable sequence that initializes and returns the shader window object. If a window has already been initialized, this source will return a reference to the created window.