Java Code Examples for com.badlogic.gdx.Graphics#DisplayMode
The following examples show how to use
com.badlogic.gdx.Graphics#DisplayMode .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ShatteredPixelDungeon.java From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 | 6 votes |
@Override public void resize(int width, int height) { if (scene instanceof PixelScene && (height != Game.height || width != Game.width)) { ((PixelScene) scene).saveWindows(); } super.resize(width, height); Graphics.DisplayMode mode = Gdx.graphics.getDisplayMode(); boolean maximized = width >= mode.width || height >= mode.height; if (!maximized && !SPDSettings.fullscreen()){ SPDSettings.put(SPDSettings.KEY_WINDOW_WIDTH, width); SPDSettings.put(SPDSettings.KEY_WINDOW_HEIGHT, height); } }
Example 2
Source File: MainLoader.java From beatoraja with GNU General Public License v3.0 | 4 votes |
public static Graphics.DisplayMode[] getAvailableDisplayMode() { return LwjglApplicationConfiguration.getDisplayModes(); }
Example 3
Source File: MainLoader.java From beatoraja with GNU General Public License v3.0 | 4 votes |
public static Graphics.DisplayMode getDesktopDisplayMode() { return LwjglApplicationConfiguration.getDesktopDisplayMode(); }