Tao.Sdl SDK Documentation

Sdl.SDL_NewTimerCallback Delegate

Prototype for the new timer callback.

[Visual Basic]
Public Delegate Function Sdl.SDL_NewTimerCallback( _
   ByVal interval As Integer _
) As Integer
[C#]
public delegate int Sdl.SDL_NewTimerCallback(
   int interval
);

Parameters

interval
The current timer interval.

Return Value

The next timer interval.

Remarks

The callback function is passed the current timer interval and returns the next timer interval. If the returned value is the same as the one passed in, the periodic alarm continues, otherwise a new alarm is scheduled. If the callback returns 0, the periodic alarm is cancelled.

Binds to C callback in SDL_timer.h:

typedef Uint32 (SDLCALL *SDL_NewTimerCallback)(Uint32 interval, void *param)

Requirements

Namespace: Tao.Sdl

Assembly: Tao.Sdl (in Tao.Sdl.dll)

See Also

Tao.Sdl Namespace | SDL_AddTimer | SDL_RemoveTimer