ID3DXLine::Draw method

Draws a line strip in screen space. Input is in the form of an array that defines points (of D3DXVECTOR2) on the line strip.

Syntax

HRESULT Draw(
  [in] const D3DXVECTOR2 *pVertexList,
  [in]       DWORD       dwVertexListCount,
  [in]       D3DCOLOR    Color
);

Parameters

pVertexList [in]

Type: const D3DXVECTOR2*

Array of vertices that make up the line. See D3DXVECTOR2.

dwVertexListCount [in]

Type: DWORD

Number of vertices in the vertex list.

Color [in]

Type: D3DCOLOR

Color of the line. See D3DCOLOR.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, D3DXERR_INVALIDDATA.

Requirements

Header
D3dx9core.h
Library
D3dx9.lib

See also

ID3DXLine