Table of Contents

Class ViewportState

Namespace
Bonsai.Shaders.Configuration
Assembly
Bonsai.Shaders.dll

Represents a configuration object for specifying the active viewport for rendering, in normalized coordinates.

public class ViewportState : StateConfiguration
Inheritance
ViewportState
Inherited Members

Properties

Height

Gets or sets the height of the viewport rectangle, in normalized coordinates.

public float Height { get; set; }

Property Value

float

Width

Gets or sets the width of the viewport rectangle, in normalized coordinates.

public float Width { get; set; }

Property Value

float

X

Gets or sets the x-coordinate of the lower left corner of the viewport, in normalized coordinates.

public float X { get; set; }

Property Value

float

Y

Gets or sets the y-coordinate of the lower left corner of the viewport, in normalized coordinates.

public float Y { get; set; }

Property Value

float

Methods

Execute(ShaderWindow)

Updates the state of the current graphics context.

public override void Execute(ShaderWindow window)

Parameters

window ShaderWindow

The shader window associated with the current graphics context.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.