DarkBASIC Professional Help File

DX11 DRAW 3DLINE

Draws a line between two 3D coordinates.
The line may optionally be rendered so that other 3D objects in front of it will obscure it, or it can be drawn
on top of all other 3D geometry regardless of its depth position.
The line will be rendered in the next call to dx11 sync only and is mostly intended for debugging purposes.

Syntax

    DX11 DRAW 3DLINE x1, y1, z1, x2, y2, z2, colour, [ignoreZDepth]

Parameters

    x1

> Float
> The first X coordinate of the line.

    y1

> Float
> The first Y coordinate of the line.

    z1

> Float
> The first Z coordinate of the line.

    x2

> Float
> The second X coordinate of the line.

    y2

> Float
> The second Y coordinate of the line.

    z2

> Float
> The second Z coordinate of the line.

    colour

> Dword
> The colour to draw the line using, specified using the standard 0xaarrggbb format.

    [Optional] ignoreZDepth

> Boolean
> If set to true the line will be drawn on top of all other 3D geometry that would otherwise occlude the line. Defaults to false.

Returns

This function does not return a value.

See also

CORE Functions Menu
DX11 Function Categories