本文整理了Java中org.lwjgl.glfw.GLFW.glfwWindowShouldClose()
方法的一些代码示例,展示了GLFW.glfwWindowShouldClose()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GLFW.glfwWindowShouldClose()
方法的具体详情如下:
包路径:org.lwjgl.glfw.GLFW
类名称:GLFW
方法名:glfwWindowShouldClose
[英]Returns the value of the close flag of the specified window.
This function may be called from any thread.
[中]返回指定窗口的关闭标志的值。
此函数可以从任何线程调用。
代码示例来源:origin: libgdx/libgdx
boolean shouldClose() {
return GLFW.glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: libgdx/libgdx
boolean shouldClose() {
return GLFW.glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Override
public void run() {
if (listener == null) {
throw new IllegalStateException("SystemListener is not set on context!"
+ "Must set with JmeContext.setSystemListener().");
}
LOGGER.log(Level.FINE, "Using LWJGL {0}", Version.getVersion());
if (!initInThread()) {
LOGGER.log(Level.SEVERE, "Display initialization failed. Cannot continue.");
return;
}
while (true) {
runLoop();
if (needClose.get()) {
break;
}
if (glfwWindowShouldClose(window)) {
listener.requestClose(false);
}
}
deinitInThread();
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Override
public void run() {
if (listener == null) {
throw new IllegalStateException("SystemListener is not set on context!"
+ "Must set with JmeContext.setSystemListener().");
}
LOGGER.log(Level.FINE, "Using LWJGL {0}", Version.getVersion());
if (!initInThread()) {
LOGGER.log(Level.SEVERE, "Display initialization failed. Cannot continue.");
return;
}
while (true) {
runLoop();
if (needClose.get()) {
break;
}
if (glfwWindowShouldClose(window) == true) {
listener.requestClose(false);
}
}
deinitInThread();
}
代码示例来源:origin: sriharshachilakapati/SilenceEngine
/**
* This method returns the value of the close flag of this window.
*
* @return The close flag of this window.
*/
public boolean shouldClose()
{
return glfwWindowShouldClose(handle);
}
代码示例来源:origin: Renanse/Ardor3D
@Override
public boolean isClosing() {
return GLFW.glfwWindowShouldClose(_windowId);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
public boolean windowShouldClose() {
return glfwWindowShouldClose(windowHandle);
}
代码示例来源:origin: fynnfluegge/oreon-engine
@Override
public boolean isCloseRequested() {
return glfwWindowShouldClose(getId());
}
内容来源于网络,如有侵权,请联系作者删除!