Skip to content

Latest commit

 

History

History
93 lines (58 loc) · 1.79 KB

id3dxline--draw.md

File metadata and controls

93 lines (58 loc) · 1.79 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location
Draws a line strip in screen space. Input is in the form of an array that defines points (of D3DXVECTOR2) on the line strip.
10ad5af5-fb57-46ef-a89f-7a05dcf58826
ID3DXLine::Draw method (D3dx9core.h)
reference
05/31/2018
APIRef
kbSyntax
ID3DXLine.Draw
COM
d3dx9.lib
d3dx9.dll

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

Requirement Value
Header
D3dx9core.h
Library
D3dx9.lib

See also

ID3DXLine