Tesla Graphics Engine Documentation (January 2012)
Viewport Structure
TeslaTesla.GraphicsViewport
Defines the 2D region where the 3D rendering is projected onto.
Declaration Syntax
C#
public struct Viewport
Members
All Members Constructors Methods Properties Fields



Icon Member Description
Viewport(Int32, Int32, Int32, Int32, Int32, Int32)
Creates a new viewport with the supplied top left corner coordinates, width, and height.

Viewport(Int32, Int32, Int32, Int32)
Creates a new viewport with the supplied top left corner coordinates, width, and height.

Viewport(Rectangle)
Creates a new viewport from the supplied rectangle bounds.

AspectRatio
Get the aspect ratio of the viewport, width divided by height.

Bounds
Get or set the bounds of this viewport as a Rectangle.

Equals(Object)
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
GetHashCode()()()()
Returns the hash code for this instance.
(Inherited from ValueType.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Height
Height of viewport.

MaxDepth
Maximum Z depth.

MinDepth
Minimum Z depth.

Project(Vector3, Matrix, Matrix, Matrix)
Projects a 3D Vector from object space to screen space.

Project(Vector3%, Matrix%, Matrix%, Matrix%, Vector3%)
Projects a 3D Vector from object space to screen space.

ToString()()()()
Returns a String that represents this instance.
(Overrides ValueType.ToString()()()().)
UnProject(Vector3, Matrix, Matrix, Matrix)
Converts a point in screen space to a point in world space.

UnProject(Vector3%, Matrix%, Matrix%, Matrix%, Vector3%)
Converts a point in screen space to a point in world space.

Width
Width of viewport.

X
Top left X coordinate of viewport.

Y
Top left Y coordinate of viewport.

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)