From 396299307ff6b6fbec6acbebc2780b1d5464b2cf Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Mon, 20 Nov 2017 11:42:12 -0500 Subject: [PATCH] UnmanagedFunctionPointer attributes --- src/SDL2.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index 873db48..a5c0ae0 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -1050,6 +1050,7 @@ namespace SDL2 /* win refers to an SDL_Window*, area to a cosnt SDL_Point*, data to a void* */ /* Only available in 2.0.4 */ + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate SDL_HitTestResult SDL_HitTest(IntPtr win, IntPtr area, IntPtr data); /* IntPtr refers to an SDL_Window* */ @@ -6192,6 +6193,7 @@ namespace SDL2 public static extern UInt64 SDL_GetPerformanceFrequency(); /* param refers to a void* */ + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate UInt32 SDL_TimerCallback(UInt32 interval, IntPtr param); /* int refers to an SDL_TimerID, param to a void* */