Function _IrrAddTestSceneNode

au3Irr2

au3Irr2 Function Reference

_IrrAddTestSceneNode

Adds a simple cube node to the scene

#Include <au3Irrlicht2.au3>
_IrrAddTestSceneNode()

 

Parameters

None.

 

Return Value

success: Handle of the cube scene node
failure: False

 

Remarks

The test scene node is a cube with fixed dimensions mainly for test purposes.

 

Related

_IrrAddCubeSceneNode, _IrrAddSphereSceneNode

 

Example


#include "au3Irrlicht2.au3"

_IrrStart()

local $nodeCamera = _IrrAddCamera(10,10,10, 0,0,0 )
local $nodeTest = _IrrAddTestSceneNode()
_IrrSetNodeMaterialTexture( $nodeTest, _IrrGetTexture(".\media\au3irr2_logo.jpg"), 0)
_IrrSetNodeMaterialFlag( $nodeTest, $IRR_EMF_LIGHTING, $IRR_OFF )

WHILE _IrrRunning()
    _IrrBeginScene(0, 0, 0)
    _IrrDrawScene()
    _IrrEndScene()
WEND

_IrrStop()