Function _IrrAddToBatchingMesh

au3Irr2

au3Irr2 Function Reference

_IrrAddToBatchingMesh

Adds a mesh to the batching mesh at the specified position, rotation and scale.

#Include <au3Irrlicht2.au3>
_IrrAddToBatchingMesh($h_meshBatch, $h_mesh, $f_posX = 0.0, $f_posY = 0.0, $f_posZ = 0.0, $f_rotX = 0.0, $f_rotY = 0.0, $f_rotZ = 0.0, $f_scaleX = 1.0, $f_scaleY = 1.0, $f_scaleZ = 1.0)

 

Parameters

$h_meshBatch Handle to a bactching mesh as returned by _IrrCreateBatchingMesh.
$h_mesh Handle to the meash to add.
$f_posX X position
$f_posY Y position
$f_posZ Z position
$f_rotX X rotation
$f_rotY Y rotation
$f_rotZ Z rotation
$f_scaleX X scale
$f_scaleY Y scale
$f_scaleZ Z scale

 

Return Value

Success: True
Failure: False

 

Remarks

If each of your meshes requires a different texture you should call IrrSetMeshMaterialTexture for the mesh you are about to add prior to adding the mesh to the batch.

 

Related

_IrrCreateBatchingMesh, _IrrFinalizeBatchingMesh