Wiki Page Content

Differences between revisions 10 and 11
Revision 10 as of 2017-02-19 20:52:34
Size: 835
Comment: Removed old formatting.
Revision 11 as of 2017-02-19 20:53:26
Size: 847
Comment: Fixed example.
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:
... /* ... */
Line 28: Line 28:
... /* ... */

SDL_RemoveTimer

Use this function to remove a timer created with SDL_AddTimer().

Syntax

SDL_bool SDL_RemoveTimer(SDL_TimerID id)

Function Parameters

id

the ID of the timer to remove

Return Value

Returns SDL_TRUE if the timer is removed or SDL_FALSE if the timer wasn't found.

Code Examples

Uint32 delay = (33 / 10) * 10;  /* To round it down to the nearest 10 ms */

/* ... */

SDL_TimerID my_timer_id = SDL_AddTimer(delay, my_callbackfunc, my_callback_param);

/* ... */

SDL_RemoveTimer(my_timer_id);

Remarks

You can add useful comments here


CategoryAPI, CategoryTimer

None: SDL_RemoveTimer (last edited 2017-02-19 20:53:26 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit