glfwSetWindowShouldClose function
! @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.
@paramin
window The window whose flag to change.
@paramin
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
GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* window, int value)
Implementation
void glfwSetWindowShouldClose(Pointer<GLFWwindow> window, int value) {
final glfwSetWindowShouldCloseLookupFunction = libglfw.lookupFunction<
Void Function(Pointer<GLFWwindow> window, Int32 value),
void Function(
Pointer<GLFWwindow> window, int value)>('glfwSetWindowShouldClose');
return glfwSetWindowShouldCloseLookupFunction(window, value);
}