PFND3DDDI_DRAWPRIMITIVE2 callback function (d3dumddi.h)
The DrawPrimitive2 function draws nonindexed primitives in which the Microsoft Direct3D runtime has transformed the vertex data.
Syntax
PFND3DDDI_DRAWPRIMITIVE2 Pfnd3dddiDrawprimitive2;
HRESULT Pfnd3dddiDrawprimitive2(
HANDLE hDevice,
const D3DDDIARG_DRAWPRIMITIVE2 *unnamedParam2
)
{...}
Parameters
hDevice
A handle to the display device (graphics context).
unnamedParam2
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
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Vista and later versions of the Windows operating systems. |
Target Platform | Desktop |
Header | d3dumddi.h (include D3dumddi.h) |