Add IAnimatedMeshSceneNode::getLoopMode (asked for by JLouisB)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4259 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
d7b9290902
commit
2d13027a9c
@ -1,4 +1,7 @@
|
|||||||
Changes in 1.8 (??.??.2011)
|
Changes in 1.8 (??.??.2011)
|
||||||
|
|
||||||
|
- Add IAnimatedMeshSceneNode::getLoopMode (asked for by JLouisB)
|
||||||
|
|
||||||
- CSceneNodeAnimatorCameraFPS now resets the key-input when it was disabled (thx @ gerdb for reporting and patch-proposal)
|
- CSceneNodeAnimatorCameraFPS now resets the key-input when it was disabled (thx @ gerdb for reporting and patch-proposal)
|
||||||
|
|
||||||
- Properly destroy OpenGL resources on linux (thx @curaga for the patch)
|
- Properly destroy OpenGL resources on linux (thx @curaga for the patch)
|
||||||
|
@ -166,6 +166,10 @@ namespace scene
|
|||||||
/** If set to false, animations will not be played looped. */
|
/** If set to false, animations will not be played looped. */
|
||||||
virtual void setLoopMode(bool playAnimationLooped) = 0;
|
virtual void setLoopMode(bool playAnimationLooped) = 0;
|
||||||
|
|
||||||
|
//! returns the current loop mode
|
||||||
|
/** When true the animations are played looped */
|
||||||
|
virtual bool getLoopMode() const = 0;
|
||||||
|
|
||||||
//! Sets a callback interface which will be called if an animation playback has ended.
|
//! Sets a callback interface which will be called if an animation playback has ended.
|
||||||
/** Set this to 0 to disable the callback again.
|
/** Set this to 0 to disable the callback again.
|
||||||
Please note that this will only be called when in non looped
|
Please note that this will only be called when in non looped
|
||||||
|
@ -244,7 +244,7 @@ void CAnimatedMeshSceneNode::OnAnimate(u32 timeMs)
|
|||||||
LastTimeMs = timeMs;
|
LastTimeMs = timeMs;
|
||||||
}
|
}
|
||||||
|
|
||||||
// set CurrentFrameNr
|
// set CurrentFrameNr
|
||||||
buildFrameNr(timeMs-LastTimeMs);
|
buildFrameNr(timeMs-LastTimeMs);
|
||||||
|
|
||||||
// update bbox
|
// update bbox
|
||||||
@ -735,6 +735,12 @@ void CAnimatedMeshSceneNode::setLoopMode(bool playAnimationLooped)
|
|||||||
Looping = playAnimationLooped;
|
Looping = playAnimationLooped;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//! returns the current loop mode
|
||||||
|
bool CAnimatedMeshSceneNode::getLoopMode() const
|
||||||
|
{
|
||||||
|
return Looping;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//! Sets a callback interface which will be called if an animation
|
//! Sets a callback interface which will be called if an animation
|
||||||
//! playback has ended. Set this to 0 to disable the callback again.
|
//! playback has ended. Set this to 0 to disable the callback again.
|
||||||
|
@ -53,6 +53,9 @@ namespace scene
|
|||||||
//! animations will not be looped.
|
//! animations will not be looped.
|
||||||
virtual void setLoopMode(bool playAnimationLooped);
|
virtual void setLoopMode(bool playAnimationLooped);
|
||||||
|
|
||||||
|
//! returns the current loop mode
|
||||||
|
virtual bool getLoopMode() const;
|
||||||
|
|
||||||
//! Sets a callback interface which will be called if an animation
|
//! Sets a callback interface which will be called if an animation
|
||||||
//! playback has ended. Set this to 0 to disable the callback again.
|
//! playback has ended. Set this to 0 to disable the callback again.
|
||||||
virtual void setAnimationEndCallback(IAnimationEndCallBack* callback=0);
|
virtual void setAnimationEndCallback(IAnimationEndCallBack* callback=0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user