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
    If set, toggles the activation mode when pressed.
    If supported by the backend and platform, configures the application's name and initial window title.
    boolean
    If set, converts images into a format for fast GPU uploads when initially loaded versus doing it on demand when displayed.
    boolean
    If set, emulates Touch and disables Mouse.
    boolean
    Whether or not to run the game in fullscreen mode.
    int
    The 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 by JavaStorage.
    boolean
    Stop processing frames while the app is "inactive", to better emulate iOS.
    int
    The width of the PlayN window, in pixels.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • storageFileName

      public String storageFileName
      Dictates the name of the temporary file used by JavaStorage. Configure this if you want to run multiple sessions without overwriting one another's storage.
    • width

      public int width
      The width of the PlayN window, in pixels.
    • height

      public int height
      The height of the PlayN window, in pixels.
    • fullscreen

      public boolean fullscreen
      Whether 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 emulateTouch
      If set, emulates Touch and disables Mouse. For testing.
    • pivotKey

      public Key pivotKey
      If {link #emulateTouch} is set, sets the pivot for a two-finger touch when pressed.
    • activationKey

      public Key activationKey
      If set, toggles the activation mode when pressed. This is for emulating the active state found in IOSGameView.
    • convertImagesOnLoad

      public boolean convertImagesOnLoad
      If 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

      public String 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 truePause
      Stop processing frames while the app is "inactive", to better emulate iOS.
  • Constructor Details

    • Config

      public Config()