Function _IrrDraw3DLine

au3Irr2

au3Irr2 Function Reference

_IrrDraw3DLine

Draws a line onto the display using 3D co-ordinates and a specified colour.

#Include <au3Irrlicht2.au3>
_IrrDraw3DLine($f_XStart, $f_YStart, $f_ZStart, $f_XEnd, $f_YEnd, $f_ZEnd, $i_Red, $i_Green, $i_Blue)

 

Parameters

$f_XStart, $f_YStart, $f_ZStart Defines start point for the 3D-line.
$f_XEnd, $f_YEnd, $f_ZEnd Defines end point for the 3D-line.
$i_Red, $i_Green, $i_Blue Colour values for the 3D-Line (0-255).

 

Return Value

success: True
failure: False

 

Remarks

The lines are not part of the Irrlicht scene but drawn before and separately. They need to be redrawn for every new frame.

 

Related

_IrrBeginScene, _IrrEndScene()

 

Example


#include "au3Irrlicht2.au3"

_IrrStart()

local $i
local $nodeCamera = _IrrAddFPSCamera()
_IrrSetCameraTarget($nodeCamera, 50, 0, 50)

WHILE _IrrRunning()
    _IrrBeginScene(0, 0, 50)

    ; draw a grid to sreen before drawing the scene:
    for $i = 0 to 250 step 25
            _IrrDraw3DLine($i, -25, 0, $i, -25, 250, 255, 255, 0)
            _IrrDraw3DLine(0, -25, $i, 250, -25, $i, 255, 255, 0)
    next ; $i

    _IrrDrawScene()
    _IrrEndScene()
WEND

_IrrStop()