glfwSetWindowShouldClose

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.

extern (C) @nogc nothrow __gshared
void
glfwSetWindowShouldClose

Parameters

window GLFWwindow*

The window whose flag to change.

value int

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

Meta

Since

Added in version 3.0.

Ingroup: window