ID3DXLine

The ID3DXLine interface implements line drawing using textured triangles.

ID3DXLine Members

Method Description
ID3DXLine::Begin Prepares a device for drawing lines.
ID3DXLine::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.
ID3DXLine::DrawTransform Draws a line strip in screen space with a specified input transformation matrix.
ID3DXLine::End Restores the device state to how it was when ID3DXLine::Begin was called.
ID3DXLine::GetAntialias Gets the line antialiasing state.
ID3DXLine::GetDevice Retrieves the Direct3D device associated with the line object.
ID3DXLine::GetGLLines Gets the OpenGL-style line-drawing mode.
ID3DXLine::GetPattern Gets the line stipple pattern.
ID3DXLine::GetPatternScale Gets the stipple-pattern scale value.
ID3DXLine::GetWidth Gets the thickness of the line.
ID3DXLine::OnLostDevice Use this method to release all references to video memory resources and delete all stateblocks. This method should be called whenever a device is lost, or before resetting a device.
ID3DXLine::OnResetDevice Use this method to re-acquire resources and save initial state.
ID3DXLine::SetAntialias Toggles line antialiasing.
ID3DXLine::SetGLLines Toggles the mode to draw OpenGL-style lines.
ID3DXLine::SetPattern Applies a stipple pattern to the line.
ID3DXLine::SetPatternScale Stretches the stipple pattern along the line direction.
ID3DXLine::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;

Requirements

Header: Declared in D3dx9core.h.

Import Library: Use D3dx9.lib.