ID3DXLine::DrawTransform method

Draws a line strip in screen space with a specified input transformation matrix.

Syntax

HRESULT DrawTransform(
  [in] const D3DXVECTOR3 *pVertexList,
  [in]       DWORD       dwVertexListCount,
  [in] const D3DXMATRIX  *pTransform,
  [in]       D3DCOLOR    Color
);

Parameters

pVertexList [in]

Type: const D3DXVECTOR3*

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

dwVertexListCount [in]

Type: DWORD

Number of vertices in the vertex list.

pTransform [in]

Type: const D3DXMATRIX*

A scale, rotate, and translate (SRT) matrix for transforming the points. See D3DXMATRIX. If this matrix is a projection matrix, any stippled lines will be drawn with a perspective-correct stippling pattern. Or, you can transform the vertices and use ID3DXLine::Draw to draw the line with a nonperspective-correct stipple pattern.

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