Differences between version 2 and previous revision of SDL_AddTimer(3).
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Monday, June 3, 2002 6:53:39 pm | by perry | Revert |
Older page: | version 1 | Last edited on Monday, June 3, 2002 6:53:39 pm | by perry | Revert |
@@ -1,6 +1,6 @@
-SDL_AddTimer
-!!!SDL_AddTimer
+SDL_!
AddTimer
+!!!SDL_!
AddTimer
NAME
SYNOPSIS
CALLBACK
DESCRIPTION
@@ -10,17 +10,17 @@
----
!!NAME
-SDL_AddTimer- Add a timer which will call a callback after the specified number of milliseconds has elapsed.
+SDL_!
AddTimer- Add a timer which will call a callback after the specified number of milliseconds has elapsed.
!!SYNOPSIS
__#include __
-__SDL_TimerID SDL_AddTimer__(__Uint32 interval,
-SDL_NewTimerCallback callback, void
+__SDL_TimerID SDL_!
AddTimer__(__Uint32 interval,
+SDL_!
NewTimerCallback callback, void
*param__);
!!CALLBACK
@@ -30,17 +30,17 @@
Adds a callback function to be run after the specified
number of milliseconds has elapsed. The callback function is
passed the current timer interval and the user supplied
-parameter from the __SDL_AddTimer__ call and returns the
+parameter from the __SDL_!
AddTimer__ call and returns the
next timer interval. If the returned value from the callback
is the same as the one passed in, the periodic alarm
continues, otherwise a new alarm is scheduled.
To cancel a currently running timer call
-''SDL_RemoveTimer'' with the timer ID returned from
-__SDL_AddTimer__.
+''SDL_!
RemoveTimer'' with the timer ID returned from
+__SDL_!
AddTimer__.
The timer callback function may run in a different thread
than your main program, and so shouldn't call any functions
@@ -61,10 +61,10 @@
there was an error.
!!EXAMPLES
-my_timer_id = SDL_AddTimer((33/10)*10, my_callbackfunc, my_callback_param);
+my_timer_id = SDL_!
AddTimer((33/10)*10, my_callbackfunc, my_callback_param);
!!SEE ALSO
-__SDL_RemoveTimer__
+__SDL_!
RemoveTimer__
----