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

Class d3dTransformData

public final class d3dTransformData {
  public int dwSize;
  public byte[] lpIn;
  public int dwInSize;
  public byte[] lpOut;
  public int dwOutSize;
  public byte[] lpHOut;
  public int dwClip;
  public int dwClipIntersection;
  public int dwClipUnion;
  public int x1;
  public int y1;
  public int x2;
  public int y2;
}

Contains information about transformations for the TransformVertices method.

See also d3dViewport.

Fields

dwSize
Size of the class, in bytes.
lpIn
Array variable that contains the vertices to be transformed.
dwInSize
Stride of the vertices to be transformed.
lpOut
Array variable that receives the transformed vertices.
dwOutSize
Stride of output vertices.
lpHOut
Array variable that contains homogeneous transformed vertices.
dwClip
One or more values of D3DCLIP_ type, specifying how the vertices are clipped.
dwClipIntersection
One or more D3DSTATUS_CLIPINTERSECTION* values of D3DSTATUS_ type, denoting the intersection of the clip flags.
dwClipUnion
One or more D3DSTATUS_CLIPUNION* values of D3DSTATUS_ type, denoting the union of the clip flags.
x1, y1, x2, and y2
Values that defines the extent of the transformed vertices. These fields are filled by the transformation module with the screen extent of the transformed geometry. For geometries that are clipped, this extent will only include vertices that are inside the viewing volume.

Each input vertex should be a three-vector vertex giving the [x y z] coordinates in model space for the geometry. The dwInSize field gives the amount to skip between vertices, allowing the application to store extra data inline with each vertex.

All values generated by the transformation module are stored as 16-bit precision values. The clip is treated as an integer bitfield that is set to the inclusive OR of the viewing volume planes that clip a given transformed vertex.

Top© 1996 Microsoft Corporation. All rights reserved.