Table of Contents

Class ScissorState

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

Represents a configuration object for specifying the active scissor box. Any fragments falling outside the scissor box will be discarded.

public class ScissorState : StateConfiguration
Inheritance
ScissorState
Inherited Members

Properties

Height

Gets or sets the height of the scissor box, in normalized coordinates.

public float Height { get; set; }

Property Value

float

Width

Gets or sets the width of the scissor box, 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 scissor box, 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 scissor box, 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.