Package playn.java
Class JavaPlatform
java.lang.Object
playn.core.Platform
playn.java.JavaPlatform
- Direct Known Subclasses:
JavaPlatform.Headless
public abstract class JavaPlatform extends Platform
Implements the base Java platform which is then shared by LWJGL, LWJGL+SWT, and JOGL
implementations.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJavaPlatform.ConfigDefines JavaPlatform configurable parameters.static classJavaPlatform.HeadlessNested classes/interfaces inherited from class playn.core.Platform
Platform.Error, Platform.Lifecycle, Platform.Type -
Field Summary
-
Constructor Summary
Constructors Constructor Description JavaPlatform(JavaPlatform.Config config) -
Method Summary
Modifier and Type Method Description JavaAssetsassets()JavaAudioaudio()Execexec()abstract JavaGraphicsgraphics()abstract JavaInputinput()Jsonjson()Loglog()Netnet()voidopenURL(String url)voidsetTitle(String title)Sets the title of the window totitle.voidstart()Starts the game loop.Storagestorage()inttick()doubletime()Platform.Typetype()Methods inherited from class playn.core.Platform
dispatchEvent, invokeAsync, invokeLater, isAsyncSupported, reportError
-
Constructor Details
-
JavaPlatform
-
-
Method Details
-
setTitle
Sets the title of the window totitle. -
start
public void start()Starts the game loop. This method will not return until the game exits. -
time
public double time() -
type
-
tick
public int tick() -
assets
-
audio
-
exec
-
graphics
-
input
-
json
-
log
-
net
-
storage
-
openURL
-