Selects which function to be called upon a window close event.
A window has to be opened for this function to have any effect.
Window close events are recorded continuously, but only reported when glfwPollEvents, glfwWaitEvents or glfwSwapBuffers is called.
The OpenGLTM context is still valid when this function is called.
Note that the window close callback function is not called when glfwCloseWindow is called, but only when the close request comes from the window manager.
Do not call glfwCloseWindow from a window close callback function. Close the window by returning GL_TRUE from the function.
Glfw Class | Tao.Glfw Namespace