Hi,
I havn't find on the doc the function "GetLoopMode" or is equivalent.
Where is it ?
Thank you.
GetLoopMode ?
Re: GetLoopMode ?
Strangely, Irrlicht does not seem to have a bool getLoopMode() call in AnimatedMeshSceneNode. There is a setLoopMode(bool) that controls whether the animation will be looped (true by default), but no get.
Thankfully, because it's open source, you can add the getLoopMode() to your code:
If you're using the C/C++ version of Irrlicht, add the following code
CAnimatedMeshSceneNode.h
CAnimatedMeshSceneNode.cpp
and then recompile Irrlicht.
-Aggie
Thankfully, because it's open source, you can add the getLoopMode() to your code:
If you're using the C/C++ version of Irrlicht, add the following code
CAnimatedMeshSceneNode.h
Code: Select all
bool getLoopMode();
Code: Select all
bool CAnimatedMeshSceneNode::getLoopMode()
{
return Looping;
}
and then recompile Irrlicht.
-Aggie
Re: GetLoopMode ?
Yes it's strange...
This patch can be added for 1.8 ?
This patch can be added for 1.8 ?
Re: GetLoopMode ?
Yes, I think we can do that (although needs to be const).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: GetLoopMode ?
It's in svn trunk now (r4259).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: GetLoopMode ?
Thank you.