本文整理了Java中org.lwjgl.glfw.GLFW.glfwShowWindow()
方法的一些代码示例,展示了GLFW.glfwShowWindow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GLFW.glfwShowWindow()
方法的具体详情如下:
包路径:org.lwjgl.glfw.GLFW
类名称:GLFW
方法名:glfwShowWindow
[英]Makes the specified window visible if it was previously hidden. If the window is already visible or is in full screen mode, this function does nothing.
By default, windowed mode windows are focused when shown. Set the #GLFW_FOCUS_ON_SHOW window hint to change this behavior for all newly created windows, or change the behavior for an existing window with #glfwSetWindowAttrib.
This function must only be called from the main thread.
[中]使指定的窗口在以前隐藏时可见。如果窗口已可见或处于全屏模式,则此功能不执行任何操作。
默认情况下,窗口模式窗口在显示时聚焦。设置#GLFW_FOCUS_ON_SHOW window提示以更改所有新创建窗口的此行为,或使用#glfwSetWindowAttrib更改现有窗口的行为。
只能从主线程调用此函数。
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
protected void showWindow() {
glfwShowWindow(window);
}
代码示例来源:origin: libgdx/libgdx
/**
* Sets the visibility of the window. Invisible windows will still
* call their {@link ApplicationListener}
*/
public void setVisible(boolean visible) {
if(visible) {
GLFW.glfwShowWindow(windowHandle);
} else {
GLFW.glfwHideWindow(windowHandle);
}
}
代码示例来源:origin: libgdx/libgdx
/**
* Sets the visibility of the window. Invisible windows will still
* call their {@link ApplicationListener}
*/
public void setVisible(boolean visible) {
if(visible) {
GLFW.glfwShowWindow(windowHandle);
} else {
GLFW.glfwHideWindow(windowHandle);
}
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
glfwShowWindow(window);
代码示例来源:origin: sriharshachilakapati/SilenceEngine
/**
* This method makes this window visible if it was previously hidden. If the window is already visible or is in full
* screen mode, this method does nothing.
*/
public void show()
{
glfwShowWindow(handle);
}
代码示例来源:origin: org.jmonkeyengine/jme3-lwjgl3
protected void showWindow() {
glfwShowWindow(window);
}
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl3
/**
* Sets the visibility of the window. Invisible windows will still
* call their {@link ApplicationListener}
*/
public void setVisible(boolean visible) {
if(visible) {
GLFW.glfwShowWindow(windowHandle);
} else {
GLFW.glfwHideWindow(windowHandle);
}
}
代码示例来源:origin: fynnfluegge/oreon-engine
@Override
public void show() {
glfwShowWindow(getId());
}
代码示例来源:origin: fynnfluegge/oreon-engine
public void show(){
glfwShowWindow(getId());
}
代码示例来源:origin: WarmfulDevelopment/LWJGL-3-Tutorial
public void createWindow(String title) {
window = glfwCreateWindow(width, height, title, fullscreen ? glfwGetPrimaryMonitor() : 0, 0);
if (window == 0) throw new IllegalStateException("Failed to create window!");
if (!fullscreen) {
GLFWVidMode vid = glfwGetVideoMode(glfwGetPrimaryMonitor());
glfwSetWindowPos(window, (vid.width() - width) / 2, (vid.height() - height) / 2);
}
glfwShowWindow(window);
glfwMakeContextCurrent(window);
input = new Input(window);
setLocalCallbacks();
}
代码示例来源:origin: badlogic/lwjgl3-maven-gradle
glfwShowWindow(window);
代码示例来源:origin: badlogic/lwjgl3-maven-gradle
glfwShowWindow(window);
代码示例来源:origin: playn/playn
glfwSwapInterval(1);
graphics.setSize(config.width, config.height, config.fullscreen);
glfwShowWindow(window);
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwShowWindow(windowHandle);
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwShowWindow(windowHandle);
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwShowWindow(windowHandle);
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwShowWindow(windowHandle);
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwShowWindow(windowHandle);
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwShowWindow(windowHandle);
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwShowWindow(windowHandle);
内容来源于网络,如有侵权,请联系作者删除!