Packages
 In this topic

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class D3dViewportDesc

public final class D3dViewportDesc
{
  // Fields
  public int height;
  public float maxX;
  public float maxY;
  public float maxZ;
  public float minZ;
  public float scaleX;
  public float scaleY;
  public int width;
  public int x;
  public int y;
}

Defines the visible 3D volume and the 2D screen area that a 3D volume projects onto for the getViewport and setViewport methods.

When the viewport is changed, the driver builds a new transformation matrix.

The coordinates and dimensions of the viewport are given, relative to the top-left of the device.

See also Direct3dViewport.

Fields

height
The height of the viewport.
maxX
Value describing the maximum homogeneous x coordinate.
maxY
Value describing the maximum homogeneous y coordinate.
maxZ
Value describing the maximum homogeneous z coordinate.
minZ
Value describing the minimum homogeneous z coordinate.
scaleX
Values describing the scaling quantities homogeneous to the screen.
scaleY
Values describing the scaling quantities homogeneous to the screen.
width
The width of the viewport.
x
The x coordinate of the top-left corner of the viewport.
y
The y coordinate of the top-left corner of the viewport.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.