Blt
Expand Minimize

DrawPrimitive2 routine

The DrawPrimitive2 function draws nonindexed primitives in which the Microsoft Direct3D runtime has transformed the vertex data.

Syntax


PFND3DDDI_DRAWPRIMITIVE2 DrawPrimitive2;

__checkReturn HRESULT APIENTRY DrawPrimitive2(
  _In_  HANDLE hDevice,
  _In_  const D3DDDIARG_DRAWPRIMITIVE2 *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in]

A pointer to a D3DDDIARG_DRAWPRIMITIVE2 structure that describes the primitive to draw.

Return value

DrawPrimitive2 returns S_OK or an appropriate error result if the primitive is not successfully drawn.

Remarks

Stream zero contains transform vertices and is the only stream that should be accessed.

Requirements

Version

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

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_DRAWPRIMITIVE2
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft