public class Lwjgl3WindowConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
Lwjgl3WindowConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
setAutoIconify(boolean autoIconify) |
void |
setDecorated(boolean decorated) |
void |
setFullscreenMode(com.badlogic.gdx.Graphics.DisplayMode mode)
Sets the app to use fullscreen mode.
|
void |
setInitialBackgroundColor(com.badlogic.gdx.graphics.Color color)
Sets the initial background color.
|
void |
setInitialVisible(boolean visibility) |
void |
setMaximized(boolean maximized) |
void |
setMaximizedMonitor(com.badlogic.gdx.Graphics.Monitor monitor) |
void |
setResizable(boolean resizable) |
void |
setTitle(java.lang.String title)
Sets the window title.
|
void |
setWindowedMode(int width,
int height)
Sets the app to use windowed mode.
|
void |
setWindowIcon(com.badlogic.gdx.Files.FileType fileType,
java.lang.String... filePaths)
Sets the icon that will be used in the window's title bar.
|
void |
setWindowIcon(java.lang.String... filePaths)
Sets the icon that will be used in the window's title bar.
|
void |
setWindowListener(Lwjgl3WindowListener windowListener)
Sets the
Lwjgl3WindowListener which will be informed about iconficiation, focus loss and window close events. |
void |
setWindowPosition(int x,
int y)
Sets the position of the window in windowed mode.
|
void |
setWindowSizeLimits(int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
Sets minimum and maximum size limits for the window.
|
void |
useVsync(boolean vsync)
Sets whether to use vsync.
|
public void setInitialVisible(boolean visibility)
visibility - whether the window will be visible on creation. (default true)public void setWindowedMode(int width,
int height)
width - the width of the window (default 640)height - the height of the window (default 480)public void setResizable(boolean resizable)
resizable - whether the windowed mode window is resizable (default true)public void setDecorated(boolean decorated)
decorated - whether the windowed mode window is decorated, i.e. displaying the title bars (default true)public void setMaximized(boolean maximized)
maximized - whether the window starts maximized. Ignored if the window is full screen. (default false)public void setMaximizedMonitor(com.badlogic.gdx.Graphics.Monitor monitor)
monitor - what monitor the window should maximize topublic void setAutoIconify(boolean autoIconify)
autoIconify - whether the window should automatically iconify and restore previous video mode on input focus loss.
(default true) Does nothing in windowed mode.public void setWindowPosition(int x,
int y)
public void setWindowSizeLimits(int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
public void setWindowIcon(java.lang.String... filePaths)
filePaths - One or more internal image paths. Must be JPEG, PNG, or BMP format. The one
closest to the system's desired size will be scaled. Good sizes include 16x16, 32x32 and 48x48.public void setWindowIcon(com.badlogic.gdx.Files.FileType fileType,
java.lang.String... filePaths)
fileType - The type of file handle the paths are relative to.filePaths - One or more image paths, relative to the given Files.FileType. Must be JPEG, PNG, or BMP format. The
one closest to the system's desired size will be scaled. Good sizes include 16x16, 32x32 and 48x48.public void setWindowListener(Lwjgl3WindowListener windowListener)
Lwjgl3WindowListener which will be informed about iconficiation, focus loss and window close events.public void setFullscreenMode(com.badlogic.gdx.Graphics.DisplayMode mode)
Lwjgl3ApplicationConfiguration.getDisplayMode() on
this class to enumerate connected monitors and their fullscreen display modes.public void setTitle(java.lang.String title)
public void setInitialBackgroundColor(com.badlogic.gdx.graphics.Color color)
public void useVsync(boolean vsync)
Graphics.setVSync(boolean).
For multi-window applications, only one (the main) window should enable vsync. Otherwise, every window will wait for the
vertical blank on swap individually, effectively cutting the frame rate to (refreshRate / numberOfWindows).