Пример #1
0
 /// <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;
Пример #2
0
 /// <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);
 }