public class LwjglApplicationConfiguration
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
LwjglApplicationConfiguration.LwjglApplicationConfigurationDisplayMode |
Modifier and Type | Field and Description |
---|---|
int |
a
number of bits per color channel
|
boolean |
allowSoftwareMode
Allows software OpenGL rendering if hardware acceleration was not available.
|
int |
audioDeviceBufferCount
the audio device buffer count
|
int |
audioDeviceBufferSize
the audio device buffer size in samples
|
int |
audioDeviceSimultaneousSources
the maximum number of sources that can be played simultaneously
|
int |
b
number of bits per color channel
|
int |
backgroundFPS
Target framerate when the window is not in the foreground.
|
int |
depth
number of bits for depth and stencil buffer
|
static boolean |
disableAudio
If true, OpenAL will not be used.
|
boolean |
forceExit
whether to call System.exit() on tear-down.
|
int |
foregroundFPS
Target framerate when the window is in the foreground.
|
boolean |
fullscreen
fullscreen
|
int |
g
number of bits per color channel
|
int |
height
width & height of application window
|
Color |
initialBackgroundColor |
int |
overrideDensity
used to emulate screen densities
|
java.lang.String |
preferencesDirectory
Preferences directory on the desktop.
|
int |
r
number of bits per color channel
|
boolean |
resizable
whether the window is resizable
|
int |
samples
number of samples for MSAA
|
LwjglGraphics.SetDisplayModeCallback |
setDisplayModeCallback
Callback used when trying to create a display, can handle failures, default value is null (disabled)
|
int |
stencil
number of bits for depth and stencil buffer
|
java.lang.String |
title
title of application
|
boolean |
useGL30
whether to attempt use OpenGL ES 3.0.
|
boolean |
vSyncEnabled
whether to enable vsync, can be changed at runtime via
Graphics.setVSync(boolean) |
int |
width
width & height of application window
|
int |
x
x & y of application window, -1 for center
|
int |
y
x & y of application window, -1 for center
|
Constructor and Description |
---|
LwjglApplicationConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addIcon(java.lang.String path,
Files.FileType fileType)
Adds a window icon.
|
static Graphics.DisplayMode |
getDesktopDisplayMode() |
static Graphics.DisplayMode[] |
getDisplayModes() |
void |
setFromDisplayMode(Graphics.DisplayMode mode)
Sets the r, g, b and a bits per channel based on the given
Graphics.DisplayMode and sets the fullscreen flag to true. |
public static boolean disableAudio
Application.getAudio()
returns null and the gdx-openal.jar and OpenAL
natives are not needed.public boolean useGL30
public int r
public int g
public int b
public int a
public int depth
public int stencil
public int samples
public int width
public int height
public int x
public int y
public boolean fullscreen
public int overrideDensity
public boolean vSyncEnabled
Graphics.setVSync(boolean)
public java.lang.String title
public boolean forceExit
public boolean resizable
public int audioDeviceSimultaneousSources
public int audioDeviceBufferSize
public int audioDeviceBufferCount
public Color initialBackgroundColor
public int foregroundFPS
public int backgroundFPS
public boolean allowSoftwareMode
LwjglGraphics#isSoftwareMode()
public java.lang.String preferencesDirectory
public LwjglGraphics.SetDisplayModeCallback setDisplayModeCallback
public void addIcon(java.lang.String path, Files.FileType fileType)
public void setFromDisplayMode(Graphics.DisplayMode mode)
Graphics.DisplayMode
and sets the fullscreen flag to true.mode
- public static Graphics.DisplayMode getDesktopDisplayMode()
public static Graphics.DisplayMode[] getDisplayModes()