blender/extern/sdlew/include/SDL2/SDL_timer.h
Sergey Sharybin 80d1d624d3 Support dynamic loading of SDL libraries
This is mainly to address old issue when one need to have SDL library installed
in order to use our official builds. Some hip distros already installs SDL,
but it's not quite the same across all the variety of the distros.

We also now switching to SDL-2.0, most of the distros have it in repositories
already, so it shouldn't be huge deal to install it if needed.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D878
2014-11-17 17:43:18 +05:00

46 lines
1.0 KiB
C

#ifndef _SDL_timer_h
#define _SDL_timer_h
#include "SDL_stdinc.h"
#include "SDL_error.h"
#include "begin_code.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef Uint32 SDLCALL tSDL_GetTicks(void);
typedef Uint64 SDLCALL tSDL_GetPerformanceCounter(void);
typedef Uint64 SDLCALL tSDL_GetPerformanceFrequency(void);
typedef void SDLCALL tSDL_Delay(Uint32 ms);
typedef Uint32 (SDLCALL * SDL_TimerCallback) (Uint32 interval, void *param);
typedef int SDL_TimerID;
typedef SDL_TimerID SDLCALL tSDL_AddTimer(Uint32 interval,
SDL_TimerCallback callback,
void *param);
typedef SDL_bool SDLCALL tSDL_RemoveTimer(SDL_TimerID id);
extern tSDL_GetTicks *SDL_GetTicks;
extern tSDL_GetPerformanceCounter *SDL_GetPerformanceCounter;
extern tSDL_GetPerformanceFrequency *SDL_GetPerformanceFrequency;
extern tSDL_Delay *SDL_Delay;
extern tSDL_AddTimer *SDL_AddTimer;
extern tSDL_RemoveTimer *SDL_RemoveTimer;
#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif