D3DHAL_DP2STARTVERTEX structure (d3dhal.h)

A D3DHAL_DP2STARTVERTEX structure follows certain D3DHAL_DP2COMMAND structures in the command buffer, and indicates the offset in the vertex buffer for the first vertex to use in D3dDrawPrimitives2.

Syntax

typedef struct _D3DHAL_DP2STARTVERTEX {
  WORD wVStart;
} D3DHAL_DP2STARTVERTEX, *LPD3DHAL_DP2STARTVERTEX;

Members

wVStart

Specifies an additional offset to be added to any index used for determining the location of vertices in the vertex buffer (in the case of indexed primitives).

Remarks

A D3DHAL_DP2STARTVERTEX structure follows a D3DHAL_DP2COMMAND structure in the command buffer when the bCommand member of D3DHAL_DP2COMMAND is one of the following values:

  • D3DDP2OP_INDEXEDLINELIST2
  • D3DDP2OP_INDEXEDLINESTRIP
  • D3DDP2OP_INDEXEDTRIANGLELIST2
  • D3DDP2OP_INDEXEDTRIANGLESTRIP
  • D3DDP2OP_INDEXEDTRIANGLEFAN
The first vertex of such primitives is located (wVStart + dwVertexOffset) bytes from the beginning of the vertex buffer, where dwVertexOffset is a member of D3DHAL_DRAWPRIMITIVES2DATA.

Requirements

Requirement Value
Header d3dhal.h (include D3dhal.h)

See also

D3DDP2OP_INDEXEDLINELIST2

D3DDP2OP_INDEXEDLINESTRIP

D3DDP2OP_INDEXEDTRIANGLEFAN

D3DDP2OP_INDEXEDTRIANGLELIST2

D3DDP2OP_INDEXEDTRIANGLESTRIP

D3DHAL_DP2COMMAND

D3DHAL_DRAWPRIMITIVES2DATA

D3dDrawPrimitives2