Function _IrrAddCubeSceneNode

au3Irr2

au3Irr2 Function Reference

_IrrAddCubeSceneNode

Adds a cube object to the scene with the specified dimensions.

#Include <au3Irrlicht2.au3>
_IrrAddCubeSceneNode($f_Size)

 

Parameters

$f_Size Edge length of the cube.

 

Return Value

success: Handle of the cube scene node
failure: False

 

Remarks

None

 

Related

_IrrAddTestSceneNode, _IrrAddSphereSceneNode

 

Example


#include "au3Irrlicht2.au3"

_IrrStart()

local $nodeCamera = _IrrAddCamera(10,10,10, 0,0,0 )
local $nodeTest = _IrrAddCubeSceneNode(10)
_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()