| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| public int | a
number of bits per color channel |
| public boolean | allowSoftwareMode
Allows software OpenGL rendering if hardware acceleration was not available. |
| public int | audioDeviceBufferCount
the audio device buffer count |
| public int | audioDeviceBufferSize
the audio device buffer size in samples |
| public int | audioDeviceSimultaneousSources
the maximum number of sources that can be played simultaneously |
| public int | b
number of bits per color channel |
| public int | backgroundFPS
Target framerate when the window is not in the foreground. |
| public int | depth
number of bits for depth and stencil buffer |
| public static boolean | disableAudio
If true, OpenAL will not be used. |
| public boolean | forceExit
whether to call System.exit() on tear-down. |
| public int | foregroundFPS
Target framerate when the window is in the foreground. |
| public boolean | fullscreen
fullscreen |
| public int | g
number of bits per color channel |
| public int | gles30ContextMajorVersion
The OpenGL context major version (the part in front of the decimal point) used to emulate OpenGL ES 3.0, when the version is not supported it will fall back to OpenGL ES 2.0 emulation. |
| public int | gles30ContextMinorVersion
The OpenGL context major version (the part after the decimal point) used to emulate OpenGL ES 3.0, when the version is not supported it will fall back to OpenGL ES 2.0 emulation. |
| public int | height
width & height of application window |
| pack-priv Array | |
| pack-priv Array | |
| public Color | |
| public int | maxNetThreads
The maximum number of threads to use for network requests. |
| public int | overrideDensity
used to emulate screen densities |
| public boolean | pauseWhenBackground
|
| public boolean | pauseWhenMinimized
|
| public String | preferencesDirectory
Preferences directory on the desktop. |
| public Files. | preferencesFileType
Preferences file type on the desktop. |
| public int | r
number of bits per color channel |
| public boolean | resizable
whether the window is resizable |
| public int | samples
number of samples for MSAA |
| public LwjglGraphics. | setDisplayModeCallback
Callback used when trying to create a display, can handle failures, default value is null (disabled) |
| public int | stencil
number of bits for depth and stencil buffer |
| public String | title
title of application |
| public boolean | undecorated
whether the window is undecorated |
| public boolean | useGL30
whether to attempt use OpenGL ES 3.0. |
| public boolean | useHDPI
enable HDPI mode on Mac OS X |
| public boolean | vSyncEnabled
whether to enable vsync, can be changed at runtime via |
| public int | width
width & height of application window |
| public int | x
x & y of application window, -1 for center |
| public int | y
x & y of application window, -1 for center |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public static Graphics. | |
| public static Graphics. | |
| public void | setFromDisplayMode(Graphics.
Sets the r, g, b and a bits per channel based on the given |
| a | back to summary |
|---|---|
| public int a number of bits per color channel | |
| allowSoftwareMode | back to summary |
|---|---|
| public boolean allowSoftwareMode Allows software OpenGL rendering if hardware acceleration was not available.
| |
| audioDeviceBufferCount | back to summary |
|---|---|
| public int audioDeviceBufferCount the audio device buffer count | |
| audioDeviceBufferSize | back to summary |
|---|---|
| public int audioDeviceBufferSize the audio device buffer size in samples | |
| audioDeviceSimultaneousSources | back to summary |
|---|---|
| public int audioDeviceSimultaneousSources the maximum number of sources that can be played simultaneously | |
| b | back to summary |
|---|---|
| public int b number of bits per color channel | |
| backgroundFPS | back to summary |
|---|---|
| public int backgroundFPS Target framerate when the window is not in the foreground. The CPU sleeps as needed. Use 0 to never sleep, -1 to not render. | |
| depth | back to summary |
|---|---|
| public int depth number of bits for depth and stencil buffer | |
| disableAudio | back to summary |
|---|---|
| public static boolean disableAudio If true, OpenAL will not be used. This means | |
| forceExit | back to summary |
|---|---|
| public boolean forceExit whether to call System.exit() on tear-down. Needed for Webstarts on some versions of Mac OS X it seems | |
| foregroundFPS | back to summary |
|---|---|
| public int foregroundFPS Target framerate when the window is in the foreground. The CPU sleeps as needed. Use 0 to never sleep. | |
| fullscreen | back to summary |
|---|---|
| public boolean fullscreen fullscreen | |
| g | back to summary |
|---|---|
| public int g number of bits per color channel | |
| gles30ContextMajorVersion | back to summary |
|---|---|
| public int gles30ContextMajorVersion The OpenGL context major version (the part in front of the decimal point) used to emulate OpenGL ES 3.0, when the version
is not supported it will fall back to OpenGL ES 2.0 emulation. Defaults to 3.2 (major=3, minor=2). Only used when
| |
| gles30ContextMinorVersion | back to summary |
|---|---|
| public int gles30ContextMinorVersion The OpenGL context major version (the part after the decimal point) used to emulate OpenGL ES 3.0, when the version is not
supported it will fall back to OpenGL ES 2.0 emulation. Defaults to 3.2 (major=3, minor=2). Only used when
| |
| height | back to summary |
|---|---|
| public int height width & height of application window | |
| iconFileTypes | back to summary |
|---|---|
| pack-priv Array<Files. | |
| iconPaths | back to summary |
|---|---|
| pack-priv Array<String> iconPaths | |
| initialBackgroundColor | back to summary |
|---|---|
| public Color initialBackgroundColor | |
| maxNetThreads | back to summary |
|---|---|
| public int maxNetThreads The maximum number of threads to use for network requests. Default is | |
| overrideDensity | back to summary |
|---|---|
| public int overrideDensity used to emulate screen densities | |
| pauseWhenBackground | back to summary |
|---|---|
| public boolean pauseWhenBackground
| |
| pauseWhenMinimized | back to summary |
|---|---|
| public boolean pauseWhenMinimized
| |
| preferencesDirectory | back to summary |
|---|---|
| public String preferencesDirectory Preferences directory on the desktop. Default is ".prefs/". | |
| preferencesFileType | back to summary |
|---|---|
| public Files. Preferences file type on the desktop. Default is FileType.External | |
| r | back to summary |
|---|---|
| public int r number of bits per color channel | |
| resizable | back to summary |
|---|---|
| public boolean resizable whether the window is resizable | |
| samples | back to summary |
|---|---|
| public int samples number of samples for MSAA | |
| setDisplayModeCallback | back to summary |
|---|---|
| public LwjglGraphics. Callback used when trying to create a display, can handle failures, default value is null (disabled) | |
| stencil | back to summary |
|---|---|
| public int stencil number of bits for depth and stencil buffer | |
| title | back to summary |
|---|---|
| public String title title of application | |
| undecorated | back to summary |
|---|---|
| public boolean undecorated whether the window is undecorated | |
| useGL30 | back to summary |
|---|---|
| public boolean useGL30 whether to attempt use OpenGL ES 3.0. | |
| useHDPI | back to summary |
|---|---|
| public boolean useHDPI enable HDPI mode on Mac OS X | |
| vSyncEnabled | back to summary |
|---|---|
| public boolean vSyncEnabled whether to enable vsync, can be changed at runtime via | |
| width | back to summary |
|---|---|
| public int width width & height of application window | |
| x | back to summary |
|---|---|
| public int x x & y of application window, -1 for center | |
| y | back to summary |
|---|---|
| public int y x & y of application window, -1 for center | |
| LwjglApplicationConfiguration | back to summary |
|---|---|
| public LwjglApplicationConfiguration() | |
| addIcon | back to summary |
|---|---|
| public void addIcon(String path, Files. Adds a window icon. Icons are tried in the order added, the first one that works is used. Typically three icons should be provided: 128x128 (for Mac), 32x32 (for Windows and Linux), and 16x16 (for Windows). | |
| getDesktopDisplayMode | back to summary |
|---|---|
| public static Graphics. | |
| getDisplayModes | back to summary |
|---|---|
| public static Graphics. | |
| setFromDisplayMode | back to summary |
|---|---|
| public void setFromDisplayMode(Graphics. Sets the r, g, b and a bits per channel based on the given | |
| Access | Constructor and Description |
|---|---|
| protected |
| LwjglApplicationConfigurationDisplayMode | back to summary |
|---|---|
| protected LwjglApplicationConfigurationDisplayMode(int width, int height, int refreshRate, int bitsPerPixel) | |