au3Irr2 Function Reference
_IrrAddMeshToSceneAdds a mesh to the scene as a new 3D node.
#Include <au3Irrlicht2.au3>
_IrrAddMeshToScene($h_Mesh)
Parameters
$h_Mesh | Handle of a mesh object |
Return Value
Success: Handle of the new node in the sceneFailure: False
Remarks
None
Related
_IrrGetMesh
Example
#include "au3Irrlicht2.au3"
_IrrStart()
local $camera = _IrrAddCamera(2,2,2, 0,0,0 )
local $mesh = _IrrGetMesh( ".\media\capsuleX.obj" )
local $sceneNode = _IrrAddMeshToScene( $mesh )
local $texture = _IrrGetTexture(".\media\default_texture.png")
_IrrSetNodeMaterialTexture( $sceneNode, $texture, 0)
_IrrSetNodeMaterialFlag( $sceneNode, $IRR_EMF_LIGHTING, $IRR_OFF )
WHILE _IrrRunning()
_IrrBeginScene(50, 50, 50)
_IrrDrawScene()
_IrrEndScene()
WEND
_IrrStop()