au3Irr2 Function Reference
__CreateVectStructHelper function: creates a structure array of vectors as expected from some functions.
#Include <au3Irrlicht2.au3>
__CreateVectStruct($iVect)
Parameters
$iVect | Number of vector elements the created struct array shall contain. |
Return Value
Success: The created vector struct.
Remarks
None
Related
__SetVectStruct, __GetVectStruct, __CreateVertStruct
Example
#include "au3Irrlicht2.au3"
_IrrStart()
local $nodeCamera = _IrrAddCamera( 150,50,0, 0,50,0 )
local $nodeTest = _IrrAddTestSceneNode()
_IrrSetNodeMaterialTexture( $nodeTest, _IrrGetTexture(".\media\au3irr2_logo.jpg"), 0)
_IrrSetNodeMaterialFlag( $nodeTest, $IRR_EMF_LIGHTING, $IRR_OFF )
local $tVectors = __CreateVectStruct(4)
__SetVectStruct($tVectors, 0, -100, 50, 0)
__SetVectStruct($tVectors, 1, 0, 100, -100)
__SetVectStruct($tVectors, 2, 100, 50, 0)
__SetVectStruct($tVectors, 3, 0, 100, 100)
_IrrAddSplineAnimator( $nodeTest, $tVectors, 0, 0.5, 1)
WHILE _IrrRunning()
_IrrBeginScene( 0, 0, 25 )
_IrrDrawScene()
_IrrEndScene()
WEND
_IrrStop()