Adding methods to map to SDL_Delay and SDL_GetTicks in SDL_systimer.h

This commit is contained in:
Justin Skiles 2013-08-29 23:20:39 -04:00
parent 5b2d1c3aea
commit dbe1891988

View file

@ -4602,6 +4602,21 @@ namespace SDL2
public static extern void SDL_UnlockAudioDevice(uint dev); public static extern void SDL_UnlockAudioDevice(uint dev);
#endregion #endregion
#region SDL_systimer.h
/* system timers rely on different OS mechanisms depending on which
* OS the library is compiled against */
/* delays the thread's processing based on the milliseconds parameter */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void SDL_Delay(UInt32 ms);
/* returns the milliseconds that have passed since SDL was initialized */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern UInt32 SDL_GetTicks();
#endregion
} }
} }