UnmanagedFunctionPointer attributes

This commit is contained in:
Ethan Lee 2017-11-20 11:42:12 -05:00
parent 41a2c5b93d
commit 396299307f

View file

@ -1050,6 +1050,7 @@ namespace SDL2
/* win refers to an SDL_Window*, area to a cosnt SDL_Point*, data to a void* */ /* win refers to an SDL_Window*, area to a cosnt SDL_Point*, data to a void* */
/* Only available in 2.0.4 */ /* Only available in 2.0.4 */
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate SDL_HitTestResult SDL_HitTest(IntPtr win, IntPtr area, IntPtr data); public delegate SDL_HitTestResult SDL_HitTest(IntPtr win, IntPtr area, IntPtr data);
/* IntPtr refers to an SDL_Window* */ /* IntPtr refers to an SDL_Window* */
@ -6192,6 +6193,7 @@ namespace SDL2
public static extern UInt64 SDL_GetPerformanceFrequency(); public static extern UInt64 SDL_GetPerformanceFrequency();
/* param refers to a void* */ /* param refers to a void* */
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate UInt32 SDL_TimerCallback(UInt32 interval, IntPtr param); public delegate UInt32 SDL_TimerCallback(UInt32 interval, IntPtr param);
/* int refers to an SDL_TimerID, param to a void* */ /* int refers to an SDL_TimerID, param to a void* */