Viewport Members
The following tables list the members exposed by the Viewport type.
Public Constructors
Name | Description | |
---|---|---|
Viewport | Overloaded. Creates an instance of this class. |
Public Properties
Name | Description | |
---|---|---|
AspectRatio | Gets the aspect ratio used by the viewport | |
Bounds | Gets the size of this resource. | |
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. | |
TitleSafeArea | Returns the title safe area of the current viewport. | |
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. | |
ToString | Retrieves a string representation of this object. | |
Unproject | Converts a screen space point into a corresponding point in world space. |
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) |
See Also
Reference
Viewport Structure
Microsoft.Xna.Framework.Graphics Namespace