Example #1
0
 public static extern GLFWwindowclosefun glfwSetWindowCloseCallback(IntPtr window, GLFWwindowclosefun cbfun);
Example #2
0
 public static GLFWwindowclosefun setWindowCloseCallback(GLFWwindow window, GLFWwindowclosefun cbfun)
 {
     return(Glfwint.setWindowCloseCallback(window.handle, cbfun));
 }
Example #3
0
File: Glfw.cs Project: vhotur/tao
 public static extern void glfwSetWindowCloseCallback(GLFWwindowclosefun cbfun);
Example #4
0
 [DllImport(GLFW_DLL, EntryPoint = "glfwSetWindowCloseCallback")] public static extern void SetWindowCloseCallback(IntPtr window, GLFWwindowclosefun cbfun);
Example #5
0
 /*! @brief Sets the close callback for the specified window.
  *
  *  This function sets the close callback of the specified window, which is
  *  called when the user attempts to close the window, for example by clicking
  *  the close widget in the title bar.
  *
  *  The close flag is set before this callback is called, but you can modify it
  *  at any time with @ref glfwSetWindowShouldClose.
  *
  *  The close callback is not triggered by @ref glfwDestroyWindow.
  *
  *  @param[in] window The window whose callback to set.
  *  @param[in] cbfun The new callback, or `NULL` to remove the currently set
  *  callback.
  *  @return The previously set callback, or `NULL` if no callback was set or the
  *  library had not been [initialized](@ref intro_init).
  *
  *  @remarks __OS X:__ Selecting Quit from the application menu will
  *  trigger the close callback for all windows.
  *
  *  @par Thread Safety
  *  This function may only be called from the main thread.
  *
  *  @sa @ref window_close
  *
  *  @since Added in GLFW 2.5.
  *
  *  @par
  *  __GLFW 3:__ Added window handle parameter.  Updated callback signature.
  *
  *  @ingroup window
  */
 internal static extern GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwindowclosefun cbfun);