Adding methods to map to SDL_Delay and SDL_GetTicks in SDL_systimer.h
This commit is contained in:
parent
5b2d1c3aea
commit
dbe1891988
15
src/SDL2.cs
15
src/SDL2.cs
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user