glfwSetWindowCloseCallback¶
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 glfwSetWindowShouldClose.
The close callback is not triggered by glfwDestroyWindow.
Example:
- arguments
-
\GLFWwindow
$window
The window whose callback to set.callable
$callback
- returns
-
void