Exemplo n.º 1
0
        /// <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;
            }
        }
Exemplo n.º 2
0
 internal static extern void SDL_LogSetOutputFunction(SDL_LogOutputFunction callback, IntPtr userdata);