本文整理匯總了Java中org.lwjgl.glfw.GLFW.glfwShowWindow方法的典型用法代碼示例。如果您正苦於以下問題:Java GLFW.glfwShowWindow方法的具體用法?Java GLFW.glfwShowWindow怎麽用?Java GLFW.glfwShowWindow使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.lwjgl.glfw.GLFW
的用法示例。
在下文中一共展示了GLFW.glfwShowWindow方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: show
import org.lwjgl.glfw.GLFW; //導入方法依賴的package包/類
/**
* Makes this window visible
*/
public void show() throws IllegalStateException {
if(handle == 0) {
throw new IllegalStateException("handle is NULL");
}
GLFW.glfwShowWindow(handle);
}
示例2: show
import org.lwjgl.glfw.GLFW; //導入方法依賴的package包/類
public void show()
{
if (this.handle == MemoryUtil.NULL)
{
this.createWindow();
}
GLFW.glfwShowWindow(this.handle);
GLFW.glfwFocusWindow(this.handle);
}
示例3: createWindow
import org.lwjgl.glfw.GLFW; //導入方法依賴的package包/類
public static Window createWindow(Scene scene, String title) {
if (!GLFW.glfwInit()) {
throw new IllegalStateException();
}
errorCallback = new GLFWErrorCallback() {
public void invoke(int error, long description) {
System.err.println("["+ error + "] " + description);
}
};
GLFW.glfwSetErrorCallback(errorCallback);
long window = GLFW.glfwCreateWindow(scene.getWidth(), scene.getHeight(), title, MemoryUtil.NULL, MemoryUtil.NULL);
if (window == MemoryUtil.NULL) {
System.err.println("Window returned NULL");
System.exit(-1);
}
GLFW.glfwMakeContextCurrent(window);
GLFW.glfwShowWindow(window);
GL.createCapabilities();
GLFW.glfwSwapInterval(1);
scene.setGLinitilized();
return new Window(window);
}
示例4: show
import org.lwjgl.glfw.GLFW; //導入方法依賴的package包/類
public void show(){
GLFW.glfwShowWindow(handle);
setHint(GLFW.GLFW_VISIBLE, true);
}