Package playn.java
Class JavaPlatform.Config
java.lang.Object
playn.java.JavaPlatform.Config
- Enclosing class:
JavaPlatform
Defines JavaPlatform configurable parameters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionIf set, toggles the activation mode when pressed.If supported by the backend and platform, configures the application's name and initial window title.booleanIf set, converts images into a format for fast GPU uploads when initially loaded versus doing it on demand when displayed.booleanIf set, emulates Touch and disables Mouse.booleanWhether or not to run the game in fullscreen mode.intThe height of the PlayN window, in pixels.If {link #emulateTouch} is set, sets the pivot for a two-finger touch when pressed.Dictates the name of the temporary file used byJavaStorage.booleanStop processing frames while the app is "inactive", to better emulate iOS.intThe width of the PlayN window, in pixels. -
Constructor Summary
Constructors -
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()
-