public class Lwjgl3ApplicationConfiguration extends Lwjgl3WindowConfiguration
| Constructor and Description |
|---|
Lwjgl3ApplicationConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
disableAudio(boolean disableAudio)
Whether to disable audio or not.
|
void |
enableGLDebugOutput(boolean enable,
PrintStream debugOutputStream)
Enables use of OpenGL debug message callbacks.
|
static Graphics.DisplayMode |
getDisplayMode() |
static Graphics.DisplayMode |
getDisplayMode(Graphics.Monitor monitor) |
static Graphics.DisplayMode[] |
getDisplayModes() |
static Graphics.DisplayMode[] |
getDisplayModes(Graphics.Monitor monitor) |
static Graphics.Monitor[] |
getMonitors() |
static Graphics.Monitor |
getPrimaryMonitor() |
void |
setAudioConfig(int simultaniousSources,
int bufferSize,
int bufferCount)
Sets the audio device configuration.
|
void |
setBackBufferConfig(int r,
int g,
int b,
int a,
int depth,
int stencil,
int samples)
Sets the bit depth of the color, depth and stencil buffer as well as
multi-sampling.
|
void |
setForegroundFPS(int fps)
Sets the target framerate for the application.
|
void |
setHdpiMode(HdpiMode mode)
Defines how HDPI monitors are handled.
|
void |
setIdleFPS(int fps)
Sets the polling rate during idle time in non-continuous rendering mode.
|
void |
setInitialVisible(boolean visibility) |
void |
setMaxNetThreads(int maxNetThreads)
Sets the maximum number of threads to use for network requests.
|
void |
setPreferencesConfig(String preferencesDirectory,
Files.FileType preferencesFileType)
Sets the directory where
Preferences will be stored, as well as
the file type to be used to store them. |
void |
setTransparentFramebuffer(boolean transparentFramebuffer)
Deprecated.
Results may vary on different OS and GPUs. See https://github.com/glfw/glfw/issues/1237
|
void |
useOpenGL3(boolean useGL30,
int gles3MajorVersion,
int gles3MinorVersion)
Sets whether to use OpenGL ES 3.0 emulation.
|
setAutoIconify, setDecorated, setFullscreenMode, setInitialBackgroundColor, setMaximized, setMaximizedMonitor, setResizable, setTitle, setWindowedMode, setWindowIcon, setWindowIcon, setWindowListener, setWindowPosition, setWindowSizeLimits, useVsyncpublic void setInitialVisible(boolean visibility)
setInitialVisible in class Lwjgl3WindowConfigurationvisibility - whether the window will be visible on creation. (default true)public void disableAudio(boolean disableAudio)
public void setMaxNetThreads(int maxNetThreads)
public void setAudioConfig(int simultaniousSources,
int bufferSize,
int bufferCount)
simultaniousSources - the maximum number of sources that can be played
simultaniously (default 16)bufferSize - the audio device buffer size in samples (default 512)bufferCount - the audio device buffer count (default 9)public void useOpenGL3(boolean useGL30,
int gles3MajorVersion,
int gles3MinorVersion)
useGL30 - whether to use OpenGL ES 3.0gles3MajorVersion - OpenGL ES major version, use 3 as defaultgles3MinorVersion - OpenGL ES minor version, use 2 as defaultpublic void setBackBufferConfig(int r,
int g,
int b,
int a,
int depth,
int stencil,
int samples)
r - red bits (default 8)g - green bits (default 8)b - blue bits (default 8)a - alpha bits (default 8)depth - depth bits (default 16)stencil - stencil bits (default 0)samples - MSAA samples (default 0)@Deprecated public void setTransparentFramebuffer(boolean transparentFramebuffer)
transparentFramebuffer - public void setIdleFPS(int fps)
public void setForegroundFPS(int fps)
public void setPreferencesConfig(String preferencesDirectory, Files.FileType preferencesFileType)
Preferences will be stored, as well as
the file type to be used to store them. Defaults to "$USER_HOME/.prefs/"
and Files.FileType.External.public void setHdpiMode(HdpiMode mode)
HdpiMode for more information. Note that some OpenGL
functions like GL20.glViewport(int, int, int, int) and
GL20.glScissor(int, int, int, int) require raw pixel units. Use
HdpiUtils to help with the conversion if HdpiMode is set to
HdpiMode.Logical. Defaults to HdpiMode.Logical.public void enableGLDebugOutput(boolean enable,
PrintStream debugOutputStream)
System.err to output to the "standard" error output stream.
Use Lwjgl3Application.setGLDebugMessageControl(Lwjgl3Application.GLDebugMessageSeverity, boolean)
to enable or disable other severity debug levels.public static Graphics.DisplayMode getDisplayMode()
Graphics.DisplayMode of the primary monitorpublic static Graphics.DisplayMode getDisplayMode(Graphics.Monitor monitor)
Graphics.DisplayMode of the given monitorpublic static Graphics.DisplayMode[] getDisplayModes()
Graphics.DisplayModes of the primary monitorpublic static Graphics.DisplayMode[] getDisplayModes(Graphics.Monitor monitor)
Graphics.DisplayModes of the given Graphics.Monitorpublic static Graphics.Monitor getPrimaryMonitor()
Graphics.Monitorpublic static Graphics.Monitor[] getMonitors()
Graphics.MonitorsCopyright © 2021. All rights reserved.