Пример #1
0
 public static void RemoveWindowRefreshCallback(GLFW_Window window, windowrefreshfun cbfun) =>
 window.OnWindowRefresh -= cbfun;
Пример #2
0
 /// <summary>
 /// Sets the refresh callback for the specified window.
 /// </summary>
 /// <param name="window"></param>
 /// <param name="cbfun"></param>
 /// <returns></returns>
 public static windowrefreshfun AddWindowRefreshCallback(GLFW_Window window, windowrefreshfun cbfun)
 {
     window.OnWindowRefresh += cbfun;
     return(cbfun);
 }