/// <summary> /// Removes a size callback for the specified window. /// </summary> /// <param name="window"></param> /// <param name="cbfun"></param> /// <returns></returns> public static void RemoveWindowSizeCallback(GLFW_Window window, windowsizefun cbfun) => window.OnWindowSizeChanged -= cbfun;
/// <summary> /// Adds a size callback for the specified window. /// </summary> /// <param name="window"></param> /// <param name="cbfun"></param> /// <returns></returns> public static windowsizefun AddWindowSizeCallback(GLFW_Window window, windowsizefun cbfun) { window.OnWindowSizeChanged += cbfun; return(cbfun); }