glfwSetWindowShouldClose

Function glfwSetWindowShouldClose 

Source
pub unsafe extern "C" fn glfwSetWindowShouldClose(
    window: *mut GLFWwindow,
    value: i32,
)
Expand description

@brief Sets the close flag of the specified window.

This function sets the value of the close flag of the specified window. This can be used to override the user’s attempt to close the window, or to signal that it should be closed.

@param[in] window The window whose flag to change. @param[in] value The new value.

@errors Possible errors include @ref GLFW_NOT_INITIALIZED.

@thread_safety This function may be called from any thread. Access is not synchronized.

@sa @ref window_close

@since Added in version 3.0.

@ingroup window