Share via


D3DHAL_DP2DRAWINDEXEDPRIMITIVE2

This structure is parsed from the command buffer by the D3dDrawPrimitives2 callback when the D3DHAL_DP2COMMAND structure's bCommand member is set to D3DDP2OP_DRAWINDEXEDPRIMITIVE2 and is used to render a primitive using vertex indices.

typedef struct _D3DHAL_DP2DRAWINDEXEDPRIMITIVE2 {
  D3DPRIMITIVETYPE primType;
  INT BaseVertexOffset; 
  DWORD MinIndex; 
  DWORD NumVertices; 
  DWORD StartIndexOffset; 
  DWORD PrimitiveCount; 
} D3DHAL_DP2DRAWINDEXEDPRIMITIVE2, *LPD3DHAL_DP2DRAWINDEXEDPRIMITIVE2;

Members

  • primType
    Specifies the type of primitive to draw (one of D3DPT_POINTLIST, D3DPT_LINELIST, D3DPT_LINESTRIP, D3DPT_TRIANGLELIST, D3DPT_TRIANGLESTRIP or D3DPT_TRIANGLEFAN).
  • BaseVertexOffset
    Specifies the offset that should be added to each vertex in vertex stream zero by the various primitives to determine the actual vertex in vertex stream zero.
  • MinIndex
    Specifies the minimum index of a range of vertices that are potentially accessed by the primitives to be drawn and, therefore, which vertices should be processed.
  • NumVertices
    Specifies the number of vertices in a range that are potentially accessed by the primitives to be drawn and, therefore, which vertices should be processed.
  • StartIndexOffset
    Specifies the offset of the first index in the index buffer from which indices are read to draw the primitives.
  • PrimitiveCount
    Specifies the number of triangles, lines or points to draw for the given primitive.

Remarks

The vertex data has been transformed by the run time.

As with vertices, the actual indices to use are not passed with the token data, but rather should be read from the currently selected index buffer.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: D3dhal.h.

See Also

D3dDrawPrimitives2 | D3DHAL_DP2COMMAND | D3DDP2OP_DRAWINDEXEDPRIMITIVE | D3DHAL_DP2DRAWINDEXEDPRIMITIVE | D3DHAL_XXX Structures

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.