Skip to content

Latest commit

 

History

History
97 lines (70 loc) · 3.99 KB

nf-d3d9-idirect3ddevice9-drawprimitive.md

File metadata and controls

97 lines (70 loc) · 3.99 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:d3d9.IDirect3DDevice9.DrawPrimitive
IDirect3DDevice9::DrawPrimitive (d3d9.h)
The IDirect3DDevice9::DrawPrimitive method (d3d9.h) renders a sequence of non-indexed, geometric primitives of the specified type from the current set of data input streams.
DrawPrimitive
DrawPrimitive method [Direct3D 9]
DrawPrimitive method [Direct3D 9]
IDirect3DDevice9 interface
IDirect3DDevice9 interface [Direct3D 9]
DrawPrimitive method
IDirect3DDevice9.DrawPrimitive
IDirect3DDevice9::DrawPrimitive
d3d9helper/IDirect3DDevice9::DrawPrimitive
direct3d9.idirect3ddevice9__drawprimitive
f6573fdd-1724-cbca-56a1-0b336470257e
direct3d9\idirect3ddevice9__drawprimitive.htm
direct3d9
VS|directx_sdk|~\idirect3ddevice9__drawprimitive.htm
08/10/2022
DrawPrimitive, DrawPrimitive method [Direct3D 9], DrawPrimitive method [Direct3D 9],IDirect3DDevice9 interface, IDirect3DDevice9 interface [Direct3D 9],DrawPrimitive method, IDirect3DDevice9.DrawPrimitive, IDirect3DDevice9::DrawPrimitive, d3d9helper/IDirect3DDevice9::DrawPrimitive, direct3d9.idirect3ddevice9__drawprimitive, f6573fdd-1724-cbca-56a1-0b336470257e
d3d9.h
D3D9.h
Windows
D3D9.lib
Windows
19H1
IDirect3DDevice9::DrawPrimitive
d3d9/IDirect3DDevice9::DrawPrimitive
c++
APIRef
kbSyntax
COM
D3D9.lib
D3D9.dll
IDirect3DDevice9.DrawPrimitive

IDirect3DDevice9::DrawPrimitive

-description

Renders a sequence of nonindexed, geometric primitives of the specified type from the current set of data input streams.

-parameters

-param PrimitiveType [in]

Type: D3DPRIMITIVETYPE

Member of the D3DPRIMITIVETYPE enumerated type, describing the type of primitive to render.

-param StartVertex [in]

Type: UINT

Index of the first vertex to load. Beginning at StartVertex the correct number of vertices will be read out of the vertex buffer.

-param PrimitiveCount [in]

Type: UINT

Number of primitives to render. The maximum number of primitives allowed is determined by checking the MaxPrimitiveCount member of the D3DCAPS9 structure. PrimitiveCount is the number of primitives as determined by the primitive type. If it is a line list, each primitive has two vertices. If it is a triangle list, each primitive has three vertices.

-returns

Type: HRESULT

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.

-remarks

When converting a legacy application to Direct3D 9, you must add a call to either IDirect3DDevice9::SetFVF to use the fixed function pipeline, or IDirect3DDevice9::SetVertexDeclaration to use a vertex shader before you make any Draw calls.

-see-also

IDirect3DDevice9

IDirect3DDevice9::DrawIndexedPrimitive

Rendering from Vertex and Index Buffers (Direct3D 9)