Package com.ms.com.directX Previous
Previous
Microsoft Packages
Microsoft Packages
Index
Index
Next
Next

Class d3dViewportStruc

public final class d3dViewportStruc {
  public int dwSize;
  public int dwX;
  public int dwY;
  public int dwWidth;
  public int dwHeight;
  public float dvScaleX;
  public float dvScaleY;
  public float dvMaxX;
  public float dvMaxY;
  public float dvMinZ;
  public float dvMaxZ;
}

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 d3dViewport.

Fields

dwSize
Size of this class, in bytes.
dwX and dwY
Coordinates of the top-left corner of the viewport.
dwWidth and dwHeight
Dimensions of the viewport.
dvScaleX and dvScaleY
Values describing the scaling quantities homogeneous to screen.
dvMaxX, dvMaxY, dvMinZ, and dvMaxZ
Values describing the maximum and minimum homogeneous coordinates of x, y, and z.


Top© 1996 Microsoft Corporation. All rights reserved.