Microsoft SDK for Java

D3dViewportDesc Class

The D3dViewportDesc Class of the com.ms.directX package defines the visible 3D volume and the 2D screen area that a 3D volume projects onto for the getViewport and setViewport methods.

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;
}

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

© 1999 Microsoft Corporation. All rights reserved. Terms of use.