/// <summary> /// TODO: Move out of interface /// </summary> /// <param name="callback"></param> /// <param name="userdata"></param> public static void SDL_LogGetOutputFunction(out SDL_LogOutputFunction callback, out IntPtr userdata) { IntPtr result = IntPtr.Zero; SDL_LogGetOutputFunction(out result, out userdata); if (result != IntPtr.Zero) { var funcPointer = Marshal.GetDelegateForFunctionPointer(result, typeof(SDL_LogOutputFunction)); callback = (SDL_LogOutputFunction)funcPointer; } else { callback = null; } }
internal static extern void SDL_LogSetOutputFunction(SDL_LogOutputFunction callback, IntPtr userdata);