Expand Minimize

D3DDDIARG_DRAWPRIMITIVE2 structure

The D3DDDIARG_DRAWPRIMITIVE2 structure describes a nonindexed primitive to draw.

Syntax


typedef struct _D3DDDIARG_DRAWPRIMITIVE2 {
  D3DPRIMITIVETYPE PrimitiveType;
  UINT             FirstVertexOffset;
  UINT             PrimitiveCount;
} D3DDDIARG_DRAWPRIMITIVE2;

Members

PrimitiveType

[in] A D3DPRIMITIVETYPE-typed value that indicates the type of primitive to draw. This member can be one of the following values: D3DPT_POINTLIST, D3DPT_LINELIST, D3DPT_LINESTRIP, D3DPT_TRIANGLELIST, D3DPT_TRIANGLESTRIP, or D3DPT_TRIANGLEFAN. For more information about D3DPRIMITIVETYPE, see the Microsoft Windows SDK documentation.

FirstVertexOffset

[in] The offset, in bytes, in stream zero of the vertex data. This member differs from the VStart member of the D3DDDIARG_DRAWPRIMITIVE structure that is used with the DrawPrimitive function. In VStart, the start of the vertex data in the vertex stream is specified by a vertex index rather than an actual byte offset.

PrimitiveCount

[in] The number of triangles, lines, or points to draw for the given primitive.

Remarks

The Microsoft Direct3D runtime transforms the vertex data before passing a pointer to the description of the vertex data in the pData parameter in a call to the user-mode display driver's DrawPrimitive2 function.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_DRAWPRIMITIVE
DrawPrimitive2

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft