本文整理了Java中org.lwjgl.opengl.Display.setLocation()
方法的一些代码示例,展示了Display.setLocation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Display.setLocation()
方法的具体详情如下:
包路径:org.lwjgl.opengl.Display
类名称:Display
方法名:setLocation
暂无
代码示例来源:origin: MovingBlocks/Terasology
private void updateFullScreenDisplay() throws LWJGLException {
Display.setDisplayMode(getFullScreenDisplayMode());
Display.setFullscreen(true);
Display.setLocation(0, 0);
}
代码示例来源:origin: MovingBlocks/Terasology
System.setProperty("org.lwjgl.opengl.Window.undecorated", "true");
Display.setDisplayMode(Display.getDesktopDisplayMode());
Display.setLocation(0, 0);
Display.setFullscreen(false);
config.setDisplayModeSetting(displayModeSetting);
System.setProperty("org.lwjgl.opengl.Window.undecorated", "false");
Display.setDisplayMode(config.getDisplayMode());
Display.setLocation(config.getWindowPosX(), config.getWindowPosY());
Display.setFullscreen(false);
Display.setResizable(true);
代码示例来源:origin: libgdx/libgdx
lastWidth = width;
lastHeight = height;
Display.setLocation(0, 0);
Gdx.gl.glViewport(0, 0, width, height);
resize(width, height);
代码示例来源:origin: libgdx/libgdx
lastWidth = width;
lastHeight = height;
Display.setLocation(0, 0);
Gdx.gl.glViewport(0, 0, width, height);
resize(width, height);
代码示例来源:origin: libgdx/libgdx
config.initialBackgroundColor.b);
Display.setLocation(config.x, config.y);
createDisplayPixelFormat(config.useGL30, config.gles30ContextMajorVersion, config.gles30ContextMinorVersion);
initiateGL();
代码示例来源:origin: libgdx/libgdx
config.initialBackgroundColor.b);
Display.setLocation(config.x, config.y);
createDisplayPixelFormat(config.useGL30, config.gles30ContextMajorVersion, config.gles30ContextMinorVersion);
initiateGL();
代码示例来源:origin: com.ardor3d/ardor3d-lwjgl
public void moveWindowTo(final int locX, final int locY) {
if (Display.isCreated()) {
Display.setLocation(locX, locY);
}
}
代码示例来源:origin: manuelbua/uracer-kotd
public static void main (String[] argv) {
int year = Calendar.getInstance().get(Calendar.YEAR);
System.out.print(URacer.Name + " (" + URacer.versionInfo + ")\nCopyright (c) 2011-" + year + " Manuel Bua.\n\n");
// load boot configuration, either from file or from defaults
BootConfig boot = new BootConfig();
// override boot config by command line flags, if any
if (argv.length > 0) {
if (!CommandLine.applyLaunchFlags(argv, boot)) {
return;
}
} else {
System.out.println("Try --help for a list of valid command-line switches.\n");
}
System.setProperty("org.lwjgl.opengl.Window.undecorated", "" + boot.getBoolean(BootConfigFlag.UNDECORATED));
LwjglApplicationConfiguration config = createLwjglConfig(boot);
System.out.print("Resolution set at " + (config.width + "x" + config.height) + " (x=" + boot.getWindowX() + ", y="
+ boot.getWindowY() + ")\n");
System.out.print("Vertical sync: " + (config.vSyncEnabled ? "Yes" : "No") + "\n");
System.out.print("Fullscreen: " + (config.fullscreen ? "Yes" : "No") + "\n");
System.out.print("Window decorations: " + (boot.getBoolean(BootConfigFlag.UNDECORATED) ? "No" : "Yes") + "\n");
URacer uracer = new URacer(boot);
LwjglApplication app = new LwjglApplication(uracer, config);
URacerDesktopFinalizer finalizr = new URacerDesktopFinalizer(boot, (OpenALAudio)app.getAudio());
uracer.setFinalizer(finalizr);
if (!config.fullscreen) {
Display.setLocation(boot.getWindowX(), boot.getWindowY());
}
}
代码示例来源:origin: org.ode4j/demo
Display.setLocation((Display.getDisplayMode().getWidth() - _width) / 2,
(Display.getDisplayMode().getHeight() - _height) / 2);
} catch (UnsatisfiedLinkError e) {
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl
lastWidth = width;
lastHeight = height;
Display.setLocation(0, 0);
Gdx.gl.glViewport(0, 0, width, height);
resize(width, height);
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl
config.initialBackgroundColor.b);
Display.setLocation(config.x, config.y);
createDisplayPixelFormat(config.useGL30, config.gles30ContextMajorVersion, config.gles30ContextMinorVersion);
initiateGL();
内容来源于网络,如有侵权,请联系作者删除!