Differences between current version and predecessor to the previous major change of SDL_SetTimer(3).
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Monday, June 3, 2002 6:53:49 pm | by perry | |
Older page: | version 1 | Last edited on Monday, June 3, 2002 6:53:49 pm | by perry | Revert |
@@ -1,6 +1,6 @@
-SDL_SetTimer
-!!!SDL_SetTimer
+SDL_!
SetTimer
+!!!SDL_!
SetTimer
NAME
SYNOPSIS
CALLBACK
DESCRIPTION
@@ -9,22 +9,22 @@
----
!!NAME
-SDL_SetTimer- Set a callback to run after the specified number of milliseconds has elapsed.
+SDL_!
SetTimer- Set a callback to run after the specified number of milliseconds has elapsed.
!!SYNOPSIS
__#include __
-__int SDL_SetTimer__(__Uint32 interval,
-SDL_TimerCallback callback__);
+__int SDL_!
SetTimer__(__Uint32 interval,
+SDL_!
TimerCallback callback__);
!!CALLBACK
/* Function prototype for the timer callback function */
-typedef Uint32 (*SDL_TimerCallback)(Uint32
+typedef Uint32 (*SDL_!
TimerCallback)(Uint32
interval);
!!DESCRIPTION
@@ -35,9 +35,9 @@
passed in, the periodic alarm continues, otherwise a new
alarm is scheduled.
-To cancel a currently running timer, call __SDL_SetTimer(,
+To cancel a currently running timer, call __SDL_!
SetTimer(,
NULL);__
The timer callback function may run in a different thread
@@ -60,16 +60,16 @@
__Note:__
This function is kept for compatibility but has been
-superceeded by the new timer functions ''SDL_AddTimer''
-and ''SDL_RemoveTimer'' which support multiple
+superceeded by the new timer functions ''SDL_!
AddTimer''
+and ''SDL_!
RemoveTimer'' which support multiple
timers.
!!EXAMPLES
-SDL_SetTimer((33/10)*10, my_callback);
+SDL_!
SetTimer((33/10)*10, my_callback);
!!SEE ALSO
-__SDL_AddTimer__
+__SDL_!
AddTimer__
----