From 9549b1c920d4bd6976dbcec2b0d42029a497086c Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Thu, 22 Mar 2018 17:00:23 -0400 Subject: [PATCH] SDL_GL_GetProcAddress(IntPtr) --- src/SDL2.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index c2cdf79..49f5563 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -1377,6 +1377,10 @@ namespace SDL2 ); } + /* IntPtr refers to a function pointer, proc to a const char* */ + [DllImport(nativeLibName, EntryPoint = "SDL_GL_GetProcAddress", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SDL_GL_GetProcAddress(IntPtr proc); + [DllImport(nativeLibName, EntryPoint = "SDL_GL_ExtensionSupported", CallingConvention = CallingConvention.Cdecl)] private static extern SDL_bool INTERNAL_SDL_GL_ExtensionSupported( byte[] extension