Ejemplo n.º 1
0
 /// <summary>
 /// Removes a position callback for the specified window.
 /// </summary>
 /// <param name="window"></param>
 /// <param name="cbfun"></param>
 /// <returns></returns>
 public static void RemoveWindowPosCallback(GLFW_Window window, windowposfun cbfun) =>
 window.OnWindowPosChanged -= cbfun;
Ejemplo n.º 2
0
 /// <summary>
 /// Adds a position callback for the specified window.
 /// </summary>
 /// <param name="window"></param>
 /// <param name="cbfun"></param>
 /// <returns></returns>
 public static windowposfun AddWindowPosCallback(GLFW_Window window, windowposfun cbfun)
 {
     window.OnWindowPosChanged += cbfun;
     return(cbfun);
 }