glfwWindowShouldClose function
! @brief Checks the close flag of the specified window.
This function returns the value of the close flag of the specified window.
@paramin
window The window to query.
@return The value of the close flag.
@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 int glfwWindowShouldClose(GLFWwindow* window)
Implementation
int glfwWindowShouldClose(Pointer<GLFWwindow> window) {
final glfwWindowShouldCloseLookupFunction = libglfw.lookupFunction<
Int32 Function(Pointer<GLFWwindow> window),
int Function(Pointer<GLFWwindow> window)>('glfwWindowShouldClose');
return glfwWindowShouldCloseLookupFunction(window);
}