d3d9.dllID3DXLine
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXLine Interface


The ID3DXLine interface implements line drawing using textured triangles.

ID3DXLine Members

Begin Prepares a device for drawing lines.
Draw Draws a line strip in screen space. Input is in the form of an array that defines points (of D3DXVECTOR2) on the line strip.
DrawTransform Draws a line strip in screen space with a specified input transformation matrix.
End Restores the device state to how it was when ID3DXLine::Begin was called.
GetAntialias Gets the line antialiasing state.
GetDevice Retrieves the Microsoft Direct3D device associated with the line object.
GetGLLines Gets the OpenGL-style line-drawing mode.
GetPattern Gets the line stipple pattern.
GetPatternScale Gets the stipple-pattern scale value.
GetWidth Gets the thickness of the line.
OnLostDevice Releases all references to video memory resources and deletes all state blocks.
OnResetDevice Should be called after the device has been reset.
SetAntialias Toggles line antialiasing.
SetGLLines Toggles the mode to draw OpenGL-style lines.
SetPattern Applies a stipple pattern to the line.
SetPatternScale Stretches the stipple pattern along the line direction.
SetWidth Specifies the thickness of the line.

Remarks

Create a line drawing object with D3DXCreateLine.

The LPD3DXLINE type is defined as a pointer to the ID3DXLine interface.

typedef interface ID3DXLine ID3DXLine;
typedef interface ID3DXLine *LPD3DXLINE;

Interface Information

Stock Implementationd3d9.dll
Custom ImplementationNo
Inherits fromIUnknown
Headerd3dx9core.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.