[]
Initializes a new instance of the ViewportF struct.
public ViewportF(float x, float y, float width, float height)
| Type | Name | Description |
|---|---|---|
| float | x | The x coordinate of the upper-left corner of the viewport in pixels. |
| float | y | The y coordinate of the upper-left corner of the viewport in pixels. |
| float | width | The width of the viewport in pixels. |
| float | height | The height of the viewport in pixels. |
Initializes a new instance of the ViewportF struct.
public ViewportF(float x, float y, float width, float height, float minDepth, float maxDepth)
| Type | Name | Description |
|---|---|---|
| float | x | The x coordinate of the upper-left corner of the viewport in pixels. |
| float | y | The y coordinate of the upper-left corner of the viewport in pixels. |
| float | width | The width of the viewport in pixels. |
| float | height | The height of the viewport in pixels. |
| float | minDepth | The minimum depth of the clip volume. |
| float | maxDepth | The maximum depth of the clip volume. |
Initializes a new instance of the ViewportF struct.
public ViewportF(RectF bounds)
| Type | Name | Description |
|---|---|---|
| RectF | bounds | A bounding box that defines the location and size of the viewport in a render target. |