VSF Documented
Macros | Typedefs | Functions
SDL_timer.h File Reference
#include "../../vsf_sdl2_cfg.h"
#include "SDL_stdinc.h"
#include "kernel/vsf_kernel.h"
#include "begin_code.h"
#include "close_code.h"

Go to the source code of this file.

Macros

#define SDL_AddTimer   VSF_SDL_WRAPPER(SDL_AddTimer)
 
#define SDL_RemoveTimer   VSF_SDL_WRAPPER(SDL_RemoveTimer)
 
#define SDL_GetTicks   VSF_SDL_WRAPPER(SDL_GetTicks)
 
#define SDL_GetTicks64   VSF_SDL_WRAPPER(SDL_GetTicks64)
 
#define SDL_GetPerformanceCounter   VSF_SDL_WRAPPER(SDL_GetPerformanceCounter)
 
#define SDL_GetPerformanceFrequency   VSF_SDL_WRAPPER(SDL_GetPerformanceFrequency)
 
#define SDL_Delay   VSF_SDL_WRAPPER(SDL_Delay)
 
#define SDL_TICKS_PASSED(__A, __B)   ((int32_t)((__B) - (__A)) <= 0)
 

Typedefs

typedef uintptr_t SDL_TimerID
 
typedef uint32_t(* SDL_TimerCallback) (uint32_t interval, void *param)
 

Functions

SDL_TimerID SDL_AddTimer (uint32_t interval, SDL_TimerCallback callback, void *param)
 
SDL_bool SDL_RemoveTimer (SDL_TimerID id)
 
void SDL_Delay (uint32_t ms)
 

Macro Definition Documentation

◆ SDL_AddTimer

#define SDL_AddTimer   VSF_SDL_WRAPPER(SDL_AddTimer)

◆ SDL_RemoveTimer

#define SDL_RemoveTimer   VSF_SDL_WRAPPER(SDL_RemoveTimer)

◆ SDL_GetTicks

uint32_t SDL_GetTicks   VSF_SDL_WRAPPER(SDL_GetTicks)

◆ SDL_GetTicks64

uint64_t SDL_GetTicks64   VSF_SDL_WRAPPER(SDL_GetTicks64)

◆ SDL_GetPerformanceCounter

#define SDL_GetPerformanceCounter (   void)    VSF_SDL_WRAPPER(SDL_GetPerformanceCounter)

◆ SDL_GetPerformanceFrequency

#define SDL_GetPerformanceFrequency (   void)    VSF_SDL_WRAPPER(SDL_GetPerformanceFrequency)

◆ SDL_Delay

#define SDL_Delay   VSF_SDL_WRAPPER(SDL_Delay)

◆ SDL_TICKS_PASSED

#define SDL_TICKS_PASSED (   __A,
  __B 
)    ((int32_t)((__B) - (__A)) <= 0)

Typedef Documentation

◆ SDL_TimerID

◆ SDL_TimerCallback

typedef uint32_t(* SDL_TimerCallback) (uint32_t interval, void *param)

Function Documentation

◆ SDL_AddTimer()

SDL_TimerID SDL_AddTimer ( uint32_t  interval,
SDL_TimerCallback  callback,
void *  param 
)
extern

◆ SDL_RemoveTimer()

SDL_bool SDL_RemoveTimer ( SDL_TimerID  id)
extern

◆ SDL_Delay()

void SDL_Delay ( uint32_t  ms)
extern