Bewerken

Delen via


D3DDDIARG_DRAWPRIMITIVE2 structure (d3dumddi.h)

The D3DDDIARG_DRAWPRIMITIVE2 structure describes a nonindexed primitive to draw.

Syntax

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

Members

[in] PrimitiveType

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.

[in] FirstVertexOffset

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.

[in] PrimitiveCount

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

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_DRAWPRIMITIVE

DrawPrimitive2