Viewport Members
The following tables list the members exposed by the Viewport type.
Public Properties
Name | Description | |
---|---|---|
![]() |
Height | Gets or sets the height dimension of the viewport on the render-target surface, in pixels. |
![]() |
MaxDepth | Gets or sets the maximum depth of the clip volume. |
![]() |
MinDepth | Gets or sets the minimum depth of the clip volume. |
![]() |
Width | Gets or sets the width dimension of the viewport on the render-target surface, in pixels. |
![]() |
X | Gets or sets the pixel coordinate of the upper-left corner of the viewport on the render-target surface. |
![]() |
Y | Gets or sets the pixel coordinate of the upper-left corner of the viewport on the render-target surface. |
Public Methods
Name | Description | |
---|---|---|
![]() |
Equals | (Inherited from ValueType.) |
![]() |
GetHashCode | (Inherited from ValueType.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
Project | Projects a 3D vector from object space into screen space. |
![]() |
ReferenceEquals | (Inherited from Object.) |
![]() |
ToString | Retrieves a string representation of this object. |
![]() |
Unproject | Projects a vector from screen space into object space. |
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
See Also
Reference
Viewport Structure
Microsoft.Xna.Framework.Graphics Namespace