private void updateFullScreenDisplay() throws LWJGLException { Display.setDisplayMode(getFullScreenDisplayMode()); Display.setFullscreen(true); Display.setLocation(0, 0); }
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);
lastWidth = width; lastHeight = height; Display.setLocation(0, 0); Gdx.gl.glViewport(0, 0, width, height); resize(width, height);
lastWidth = width; lastHeight = height; Display.setLocation(0, 0); Gdx.gl.glViewport(0, 0, width, height); resize(width, height);
config.initialBackgroundColor.b); Display.setLocation(config.x, config.y); createDisplayPixelFormat(config.useGL30, config.gles30ContextMajorVersion, config.gles30ContextMinorVersion); initiateGL();
config.initialBackgroundColor.b); Display.setLocation(config.x, config.y); createDisplayPixelFormat(config.useGL30, config.gles30ContextMajorVersion, config.gles30ContextMinorVersion); initiateGL();
public void moveWindowTo(final int locX, final int locY) { if (Display.isCreated()) { Display.setLocation(locX, locY); } }
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()); } }
Display.setLocation((Display.getDisplayMode().getWidth() - _width) / 2, (Display.getDisplayMode().getHeight() - _height) / 2); } catch (UnsatisfiedLinkError e) {
lastWidth = width; lastHeight = height; Display.setLocation(0, 0); Gdx.gl.glViewport(0, 0, width, height); resize(width, height);
config.initialBackgroundColor.b); Display.setLocation(config.x, config.y); createDisplayPixelFormat(config.useGL30, config.gles30ContextMajorVersion, config.gles30ContextMinorVersion); initiateGL();