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.
- Width
Gets or sets the width of the viewport rectangle, in normalized coordinates.
- X
Gets or sets the x-coordinate of the lower left corner of the viewport, in normalized coordinates.
- Y
Gets or sets the y-coordinate of the lower left corner of the viewport, in normalized coordinates.
Methods
- Execute(ShaderWindow)
Updates the state of the current graphics context.
- ToString()
Returns a string that represents the current object.