au3Irr2 Function Reference
_IrrGetNodeAnimationFrameGet the frame number that is currently being played by the node.
#Include <au3Irrlicht2.au3>
_IrrGetNodeAnimationFrame($h_Node)
Parameters
$h_Node | Handle to a character scene node. |
Return Value
Success: Current frame number being played.Failure: False and @error 1
Remarks
None.
Related
_IrrGetMesh, _IrrAddMeshToScene, _IrrGetMeshFrameCount, _IrrSetNodeAnimationSpeed, _IrrSetNodeAnimationRange
Example
#include "au3Irrlicht2.au3"
Global $hMD2Mesh, $hMeshTexture, $hSceneNode
_IrrStart()
$hMD2Mesh = _IrrGetMesh("./media/zumlin.md2")
$hMeshTexture = _IrrGetTexture("./media/zumlin.pcx")
$hSceneNode = _IrrAddMeshToScene($hMD2Mesh)
_IrrSetNodeMaterialTexture($hSceneNode, $hMeshTexture, 0)
_IrrSetNodeMaterialFlag($hSceneNode, $IRR_EMF_LIGHTING, $IRR_OFF)
_IrrAddCamera(50, 0, 0, 0, 0, 0)
While _IrrRunning() And Sleep(10)
_IrrBeginScene(240, 255, 255)
_IrrSetWindowCaption("_IrrGetNodeAnimationFrame - Playing Frame: " & _IrrGetNodeAnimationFrame($hSceneNode))
_IrrDrawScene()
_IrrEndScene()
WEnd
_IrrStop()