本文整理了Java中org.lwjgl.glfw.GLFW.glfwSetWindowShouldClose()
方法的一些代码示例,展示了GLFW.glfwSetWindowShouldClose()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GLFW.glfwSetWindowShouldClose()
方法的具体详情如下:
包路径:org.lwjgl.glfw.GLFW
类名称:GLFW
方法名:glfwSetWindowShouldClose
[英]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.
This function may be called from any thread. Access is not synchronized.
[中]设置指定窗口的关闭标志的值。这可用于覆盖用户关闭窗口的尝试,或发出关闭窗口的信号。
此函数可以从任何线程调用。访问未同步。
代码示例来源:origin: libgdx/libgdx
/**
* Closes this window and pauses and disposes the associated
* {@link ApplicationListener}.
*/
public void closeWindow() {
GLFW.glfwSetWindowShouldClose(windowHandle, true);
}
代码示例来源:origin: libgdx/libgdx
/**
* Closes this window and pauses and disposes the associated
* {@link ApplicationListener}.
*/
public void closeWindow() {
GLFW.glfwSetWindowShouldClose(windowHandle, true);
}
代码示例来源:origin: sriharshachilakapati/SilenceEngine
/**
* This method sets the value of the close flag of this window. This can be used to override the user's attempt to
* close the window, or to signal that it should be closed.
*
* @param value The new value.
*/
public void setShouldClose(boolean value)
{
glfwSetWindowShouldClose(handle, value);
}
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl3
/**
* Closes this window and pauses and disposes the associated
* {@link ApplicationListener}.
*/
public void closeWindow() {
GLFW.glfwSetWindowShouldClose(windowHandle, true);
}
代码示例来源:origin: badlogic/lwjgl3-maven-gradle
@Override
public void invoke(long window, int key, int scancode, int action, int mods) {
if ( key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE )
glfwSetWindowShouldClose(window, GL_TRUE); // We will detect this in our rendering loop
}
});
代码示例来源:origin: badlogic/lwjgl3-maven-gradle
@Override
public void invoke(long window, int key, int scancode, int action, int mods) {
if ( key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE )
glfwSetWindowShouldClose(window, GL_TRUE); // We will detect this in our rendering loop
}
});
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
内容来源于网络,如有侵权,请联系作者删除!