How does the SIO2timer works
4 posters
How does the SIO2timer works
Is there any example of how to use SIO2timer in the tutorials or meditation source code? I can't find anything.
And what does the SIO2timercallback stand for? (I don't really understand the meaning of timer callback, i know what it means in french but.. Rom, can you translate? ) I think it's a function that is called when the timer is over but I can't get it to work so mayby it's not for that..
And what does the SIO2timercallback stand for? (I don't really understand the meaning of timer callback, i know what it means in french but.. Rom, can you translate? ) I think it's a function that is called when the timer is over but I can't get it to work so mayby it's not for that..
Re: How does the SIO2timer works
You have to specify to evaluate them... (same as for sensors) in the sio2ResourceRender mask:
SIO2_EVALUATE_SENSOR
SIO2_EVALUATE_TIMER
Cheers,
SIO2_EVALUATE_SENSOR
SIO2_EVALUATE_TIMER
Cheers,
Re: How does the SIO2timer works
Look at sio2TimerCreate... SIO2timercallback is the function that will get called and it will be called every time _interval is elapsed. Thats all there is to it. If you view the source it is very small and simple.
uprise78- Posts : 228
Join date : 2008-10-31
Re: How does the SIO2timer works
Ok I manage to get it working (I was calling SIO2timerPlay in my render function )
But the int interval is in what? i set it to like 600 and it calls callback a little more than one second after I started the timer..
But the int interval is in what? i set it to like 600 and it calls callback a little more than one second after I started the timer..
Re: How does the SIO2timer works
IanLinart wrote:Ok I manage to get it working (I was calling SIO2timerPlay in my render function )
But the int interval is in what? i set it to like 600 and it calls callback a little more than one second after I started the timer..
Milliseconds (1000 = 1s)
At least that's how it works for me and it is accurate.
Francescu- Posts : 136
Join date : 2009-03-18
Re: How does the SIO2timer works
Francescu wrote:IanLinart wrote:Ok I manage to get it working (I was calling SIO2timerPlay in my render function )
But the int interval is in what? i set it to like 600 and it calls callback a little more than one second after I started the timer..
Milliseconds (1000 = 1s)
At least that's how it works for me and it is accurate.
Thanks
Similar topics
» sio2CameraSetPerspective
» sio2ObjectDuplicate only works for Physic object ?
» How could I move my camera which passes the fixed defined position?
» sio2ObjectDuplicate only works for Physic object ?
» How could I move my camera which passes the fixed defined position?
Permissions in this forum:
You cannot reply to topics in this forum