Package playn.java
Class JavaPlatform.Config
java.lang.Object
playn.java.JavaPlatform.Config
- Enclosing class:
- JavaPlatform
public static class JavaPlatform.Config extends Object
Defines JavaPlatform configurable parameters.
-
Field Summary
Fields Modifier and Type Field Description KeyactivationKeyIf set, toggles the activation mode when pressed.StringappNameIf supported by the backend and platform, configures the application's name and initial window title.booleanconvertImagesOnLoadIf set, converts images into a format for fast GPU uploads when initially loaded versus doing it on demand when displayed.booleanemulateTouchIf set, emulates Touch and disables Mouse.booleanfullscreenWhether or not to run the game in fullscreen mode.intheightThe height of the PlayN window, in pixels.KeypivotKeyIf {link #emulateTouch} is set, sets the pivot for a two-finger touch when pressed.StringstorageFileNameDictates the name of the temporary file used byJavaStorage.booleantruePauseStop processing frames while the app is "inactive", to better emulate iOS.intwidthThe width of the PlayN window, in pixels. -
Constructor Summary
Constructors Constructor Description Config() -
Method Summary
-
Field Details
-
storageFileName
Dictates the name of the temporary file used byJavaStorage. Configure this if you want to run multiple sessions without overwriting one another's storage. -
width
public int widthThe width of the PlayN window, in pixels. -
height
public int heightThe height of the PlayN window, in pixels. -
fullscreen
public boolean fullscreenWhether or not to run the game in fullscreen mode. Note: this is not well tested, so you may discover issues. Consider yourself warned. -
emulateTouch
public boolean emulateTouchIf set, emulates Touch and disables Mouse. For testing. -
pivotKey
If {link #emulateTouch} is set, sets the pivot for a two-finger touch when pressed. -
activationKey
If set, toggles the activation mode when pressed. This is for emulating the active state found inIOSGameView. -
convertImagesOnLoad
public boolean convertImagesOnLoadIf set, converts images into a format for fast GPU uploads when initially loaded versus doing it on demand when displayed. Assuming asynchronous image loads, this keeps that effort off the main thread so it doesn't cause slow frames. -
appName
If supported by the backend and platform, configures the application's name and initial window title. Currently only supported for SWT backend. -
truePause
public boolean truePauseStop processing frames while the app is "inactive", to better emulate iOS.
-
-
Constructor Details
-
Config
public Config()
-