SDL_timer.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _SDL_timer_h
  2. #define _SDL_timer_h
  3. #include "SDL_stdinc.h"
  4. #include "SDL_error.h"
  5. #include "begin_code.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. typedef Uint32 SDLCALL tSDL_GetTicks(void);
  10. typedef Uint64 SDLCALL tSDL_GetPerformanceCounter(void);
  11. typedef Uint64 SDLCALL tSDL_GetPerformanceFrequency(void);
  12. typedef void SDLCALL tSDL_Delay(Uint32 ms);
  13. typedef Uint32 (SDLCALL * SDL_TimerCallback) (Uint32 interval, void *param);
  14. typedef int SDL_TimerID;
  15. typedef SDL_TimerID SDLCALL tSDL_AddTimer(Uint32 interval,
  16. SDL_TimerCallback callback,
  17. void *param);
  18. typedef SDL_bool SDLCALL tSDL_RemoveTimer(SDL_TimerID id);
  19. extern tSDL_GetTicks *SDL_GetTicks;
  20. extern tSDL_GetPerformanceCounter *SDL_GetPerformanceCounter;
  21. extern tSDL_GetPerformanceFrequency *SDL_GetPerformanceFrequency;
  22. extern tSDL_Delay *SDL_Delay;
  23. extern tSDL_AddTimer *SDL_AddTimer;
  24. extern tSDL_RemoveTimer *SDL_RemoveTimer;
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #include "close_code.h"
  29. #endif