D3DHAL_DP2DRAWPRIMITIVE
This structure is parsed from the command buffer by the D3dDrawPrimitives2 callback when the D3DHAL_DP2COMMAND structure's bCommand member is set to D3DDP2OP_DRAWPRIMITIVE, and is used to render a primitive.
typedef struct _D3DHAL_DP2DRAWPRIMITIVE {
D3DPRIMITIVETYPE primType;
DWORD VStart;
DWORD PrimitiveCount;
} D3DHAL_DP2DRAWPRIMITIVE, *LPD3DHAL_DP2DRAWPRIMITIVE;
Members
- primType
Specifies the type of primitive to draw (one of D3DPT_POINTLIST, D3DPT_LINELIST, D3DPT_LINESTRIP, D3DPT_TRIANGLELIST, D3DPT_TRIANGLESTRIP or D3DPT_TRIANGLEFAN). - VStart
Specifies the index (into each active vertex stream) of the vertex elements with which to start drawing. Actual vertex data should be read from the current vertex streams (those referenced by the current vertex shader) rather than from the vertex data pointer in D3DHAL_DRAWPRIMITIVES2DATA. - PrimitiveCount
Specifies the number of triangles, lines or points to draw for the given primitive.
Remarks
The vertex data can be untransformed (if the hardware supports hardware vertex processing) or transformed if the application supplied data in that form to the run time.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: D3dhal.h.
See Also
D3dDrawPrimitives2 | D3DHAL_DP2COMMAND | D3DDP2OP_DRAWPRIMITIVE | D3DHAL_DRAWPRIMITIVES2DATA | D3DHAL_XXX Structures
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.