Exemplo n.º 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));
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public static extern IntPtr glfwSetWindowRefreshCallback(WindowPtr window, WindowRefreshCallback callback);
Exemplo n.º 4
0
 public static void SetWindowRefreshCallback(Window window, WindowRefreshCallback callback)
 {
     glfwSetWindowRefreshCallback(window, Marshal.GetFunctionPointerForDelegate(callback));
 }
Exemplo n.º 5
0
        public static WindowRefreshCallback SetWindowRefreshCallback(WindowHandle window, WindowRefreshCallback callback)
        {
            var old = glfwSetWindowRefreshCallback(window, callback);

            CheckError(nameof(SetWindowRefreshCallback));
            return(old);
        }
Exemplo n.º 6
0
 private static extern WindowRefreshCallback glfwSetWindowRefreshCallback(WindowHandle window, WindowRefreshCallback callback);