Package playn.java
Class LWJGLPlatform
java.lang.Object
playn.core.Platform
playn.java.JavaPlatform
playn.java.LWJGLPlatform
public class LWJGLPlatform extends JavaPlatform
Implements the PlayN platform for Java, based on LWJGL and GLFW.
Due to the way LWJGL works, a game must create the platform instance, then perform any of its
own initialization that requires access to GL resources, and then call
JavaPlatform.start to start
the game loop. The JavaPlatform.start call does not return until the game exits.-
Nested Class Summary
Nested classes/interfaces inherited from class playn.java.JavaPlatform
JavaPlatform.Config, JavaPlatform.HeadlessNested classes/interfaces inherited from class playn.core.Platform
playn.core.Platform.Error, playn.core.Platform.Lifecycle, playn.core.Platform.Type -
Field Summary
Fields inherited from class playn.core.Platform
errors, frame, lifecycle -
Constructor Summary
Constructors Constructor Description LWJGLPlatform(JavaPlatform.Config config) -
Method Summary
Modifier and Type Method Description JavaGraphicsgraphics()JavaInputinput()Methods inherited from class playn.java.JavaPlatform
assets, audio, exec, json, log, net, openURL, setTitle, start, storage, tick, time, typeMethods inherited from class playn.core.Platform
dispatchEvent, invokeAsync, invokeLater, isAsyncSupported, reportError
-
Constructor Details
-
LWJGLPlatform
-
-
Method Details
-
graphics
- Specified by:
graphicsin classJavaPlatform
-
input
- Specified by:
inputin classJavaPlatform
-