GetLoopMode ?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
JLouisB
Posts: 67
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

GetLoopMode ?

Post by JLouisB »

Hi,

I havn't find on the doc the function "GetLoopMode" or is equivalent.
Where is it ?

Thank you.
Aggie
Posts: 7
Joined: Sun Jul 22, 2012 11:56 pm

Re: GetLoopMode ?

Post by Aggie »

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

Code: Select all

 
bool getLoopMode();
 
CAnimatedMeshSceneNode.cpp

Code: Select all

 
bool CAnimatedMeshSceneNode::getLoopMode()
{
   return Looping;
}
 

and then recompile Irrlicht.

-Aggie
JLouisB
Posts: 67
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

Re: GetLoopMode ?

Post by JLouisB »

Yes it's strange...
This patch can be added for 1.8 ?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: GetLoopMode ?

Post by CuteAlien »

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
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: GetLoopMode ?

Post by CuteAlien »

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
JLouisB
Posts: 67
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

Re: GetLoopMode ?

Post by JLouisB »

Thank you. :)
Post Reply