paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] timer object


From: Alexander Pipelka
Subject: Re: [paragui-users] timer object
Date: 29 May 2002 15:00:07 +0200

Am Mit, 2002-05-29 um 14.41 schrieb Keith Swyer:
> well i know that the SDL_SetTimer works in the testtimer application found
> in SDL. so i'm assuming that that means it works :)   the only thing is that
> don't you have to use an SDL_Delay with it? i'm not too familar with it's
> use. i don't think i see how you can could use it......but hopefully you
> prove me wrong.

I assume we're talking about the mac.

>From the sdl docs about SDL_SetTimer:
"This function is kept for compatibility but has been superseded by the
new timer functions SDL_AddTimer and SDL_RemoveTimer which support
multiple timers."

That means there is only 1 timer possible (if SDL_SetTimer is working on
the Mac). Better than nothing i guess.

Why should you use SDL_Delay ?
That would turn the timer completely useless. From my understanding the
timer will call periodically a callbackfunction while the main
application loop keeps running.

Alex






reply via email to

[Prev in Thread] Current Thread [Next in Thread]