|
Size: 1148
Comment: update content (old wiki)
|
Size: 1303
Comment: minor change
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 8: | Line 8: |
| <<Color2(green,How do you get the ID? Should that info be included on this page?)>> | <<Color2(green,How do you get the ID? Should that info be included on this page? Does it have to be "multiple" timers or could you remove the only timer?)>> |
| Line 21: | Line 21: |
| Returns SDL_TRUE on success or SDL_FALSE on failure; call [[SDL_GetError]]() for more information. <<Color2(green,Does !GetError work with this type?)>> | Returns a boolean value indicating success or failure. |
| Line 23: | Line 23: |
| ''-OR-'' | ''-or-'' |
| Line 25: | Line 25: |
| Returns a boolean value indicating success or failure. | Returns SDL_TRUE on success or SDL_FALSE on failure; call [[SDL_GetError]]() for more information. <<Color2(green,Does SDL_!GetError work with this type?)>> |
| Line 40: | Line 40: |
| <<Color2(green,I don't think that math works... 33/10*10 is still 33.)>> |
DRAFT |
SDL_RemoveTimer
Use this function to remove one of the multiple timers created with [[SDL_AddTimer]](), knowing its ID.
green
Contents
Syntax
SDL_bool SDL_RemoveTimer(SDL_TimerID t)
Function Parameters
t |
the ID of the timer to remove |
Return Value
Returns a boolean value indicating success or failure.
-or-
Returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information. green
Code Examples
delay = (33 / 10) * 10; /* To round it down to the nearest 10 ms */
...
my_timer_id = SDL_AddTimer(delay, my_callbackfunc, my_callback_param);
...
SDL_RemoveTimer(my_timer_id);
green
Remarks
You can add useful comments here
