예제 #1
0
        public static void SetWindowRefreshCallback(IntPtr window, WindowRefreshCallback callback)
        {
            lock (Lock) {
                CallbackCache[nameof(SetWindowRefreshCallback)] = callback;
            }

            SetWindowRefreshCallback(window, callback == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(callback));
        }
예제 #2
0
        public static WindowRefreshCallback SetWindowRefreshCallback(WindowPtr window, WindowRefreshCallback callback)
        {
            var callbacks = GetCallbacks(window);
            var old       = callbacks.windowRefresh;

            callbacks.windowRefresh = callback;
            glfwSetWindowRefreshCallback(window, callback);
            CheckError();
            return(old);
        }
예제 #3
0
 public static extern IntPtr glfwSetWindowRefreshCallback(WindowPtr window, WindowRefreshCallback callback);
예제 #4
0
 public static void SetWindowRefreshCallback(Window window, WindowRefreshCallback callback)
 {
     glfwSetWindowRefreshCallback(window, Marshal.GetFunctionPointerForDelegate(callback));
 }
예제 #5
0
        public static WindowRefreshCallback SetWindowRefreshCallback(WindowHandle window, WindowRefreshCallback callback)
        {
            var old = glfwSetWindowRefreshCallback(window, callback);

            CheckError(nameof(SetWindowRefreshCallback));
            return(old);
        }
예제 #6
0
 private static extern WindowRefreshCallback glfwSetWindowRefreshCallback(WindowHandle window, WindowRefreshCallback callback);