Display#setParent(Canvas), which is preferred over AWTGLCanvas but is limited to a single LwjglCanvas in an
application. All OpenGL calls are done on the EDT. Note that you may need to call stop() or a Swing application may
deadlock on System.exit due to how LWJGL and/or Swing deal with shutdown hooks.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ApplicationLogger | |
| pack-priv LwjglAudio | |
| pack-priv Canvas | |
| pack-priv Cursor | |
| pack-priv final Array | |
| pack-priv Files | |
| pack-priv LwjglGraphics | |
| pack-priv LwjglInput | |
| pack-priv static boolean | |
| pack-priv final Array | |
| pack-priv ApplicationListener | |
| pack-priv int | |
| pack-priv LwjglNet | |
| pack-priv boolean | |
| pack-priv final Map | |
| pack-priv final Array | |
| pack-priv boolean | |
| pack-priv float | |
| pack-priv float |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addLifecycleListener(LifecycleListener listener)
Implements com. Adds a new |
| protected void | |
| pack-priv void | |
| public LwjglAudio | |
| protected Files | |
| public LwjglInput | |
| public void | debug(String tag, String message)
Implements com. Logs a debug message to the console or logcat |
| public void | debug(String tag, String message, Throwable exception)
Implements com. Logs a debug message to the console or logcat |
| protected void | |
| public void | error(String tag, String message)
Implements com. Logs an error message to the console or logcat |
| public void | error(String tag, String message, Throwable exception)
Implements com. Logs an error message to the console or logcat |
| protected void | |
| public boolean | |
| public void | |
| public ApplicationListener | |
| public ApplicationLogger | |
| public Audio | |
| public Canvas | |
| public Clipboard | |
| public Files | |
| protected int | |
| public Graphics | |
| public Input | |
| public long | |
| public int | |
| public long | |
| public Net | |
| public Preferences | getPreferences(String name)
Implements com. Returns the |
| public Application. | |
| public int | |
| private void | |
| public void | log(String tag, String message)
Implements com. Logs a message to the console or logcat |
| public void | log(String tag, String message, Throwable exception)
Implements com. Logs a message to the console or logcat |
| protected void | |
| public void | postRunnable(Runnable runnable)
Implements com. Posts a |
| public void | removeLifecycleListener(LifecycleListener listener)
Implements com. Removes the |
| protected void | |
| public void | setApplicationLogger(ApplicationLogger applicationLogger)
Implements com. Sets the current Application logger. |
| public void | |
| protected void | |
| public void | |
| public void | setPostedRunnableStacktraces(boolean postedRunnableStacktraces)
When true, |
| protected void | |
| protected void | |
| public void | |
| protected void |
| applicationLogger | back to summary |
|---|---|
| pack-priv ApplicationLogger applicationLogger | |
| audio | back to summary |
|---|---|
| pack-priv LwjglAudio audio | |
| canvas | back to summary |
|---|---|
| pack-priv Canvas canvas | |
| cursor | back to summary |
|---|---|
| pack-priv Cursor cursor | |
| executedRunnables | back to summary |
|---|---|
| pack-priv final Array<T> executedRunnables | |
| files | back to summary |
|---|---|
| pack-priv Files files | |
| graphics | back to summary |
|---|---|
| pack-priv LwjglGraphics graphics | |
| input | back to summary |
|---|---|
| pack-priv LwjglInput input | |
| isWindows | back to summary |
|---|---|
| pack-priv static boolean isWindows | |
| lifecycleListeners | back to summary |
|---|---|
| pack-priv final Array<LifecycleListener> lifecycleListeners | |
| listener | back to summary |
|---|---|
| pack-priv ApplicationListener listener | |
| logLevel | back to summary |
|---|---|
| pack-priv int logLevel | |
| net | back to summary |
|---|---|
| pack-priv LwjglNet net | |
| postedRunnableStacktraces | back to summary |
|---|---|
| pack-priv boolean postedRunnableStacktraces | |
| preferences | back to summary |
|---|---|
| pack-priv final Map<String, Preferences> preferences | |
| runnables | back to summary |
|---|---|
| pack-priv final Array<T> runnables | |
| running | back to summary |
|---|---|
| pack-priv boolean running | |
| scaleX | back to summary |
|---|---|
| pack-priv float scaleX | |
| scaleY | back to summary |
|---|---|
| pack-priv float scaleY | |
| LwjglCanvas | back to summary |
|---|---|
| public LwjglCanvas(ApplicationListener listener) | |
| LwjglCanvas | back to summary |
|---|---|
| public LwjglCanvas(ApplicationListener listener, LwjglApplicationConfiguration config) | |
| addLifecycleListener | back to summary |
|---|---|
| public void addLifecycleListener(LifecycleListener listener) Implements com. Doc from com. Adds a new
| |
| applyCursor | back to summary |
|---|---|
| protected void applyCursor(Cursor cursor) | |
| create | back to summary |
|---|---|
| pack-priv void create() | |
| createAudio | back to summary |
|---|---|
| public LwjglAudio createAudio(LwjglApplicationConfiguration config) Implements com.
| |
| createFiles | back to summary |
|---|---|
| protected Files createFiles() | |
| createInput | back to summary |
|---|---|
| public LwjglInput createInput(LwjglApplicationConfiguration config) Implements com.
| |
| debug | back to summary |
|---|---|
| public void debug(String tag, String message) Implements com. Doc from com. Logs a debug message to the console or logcat
| |
| debug | back to summary |
|---|---|
| public void debug(String tag, String message, Throwable exception) Implements com. Doc from com. Logs a debug message to the console or logcat
| |
| disposed | back to summary |
|---|---|
| protected void disposed() Called after dispose is complete. | |
| error | back to summary |
|---|---|
| public void error(String tag, String message) Implements com. Doc from com. Logs an error message to the console or logcat
| |
| error | back to summary |
|---|---|
| public void error(String tag, String message, Throwable exception) Implements com. Doc from com. Logs an error message to the console or logcat
| |
| exception | back to summary |
|---|---|
| protected void exception(Throwable ex) | |
| executeRunnables | back to summary |
|---|---|
| public boolean executeRunnables() | |
| exit | back to summary |
|---|---|
| public void exit() Implements com. Doc from com. Schedule an exit from the application. On android, this will cause a call to pause() and dispose() some time in the future, it will not immediately finish your application. On iOS this should be avoided in production as it breaks Apples guidelines
| |
| getApplicationListener | back to summary |
|---|---|
| public ApplicationListener getApplicationListener() Implements com.
| |
| getApplicationLogger | back to summary |
|---|---|
| public ApplicationLogger getApplicationLogger() Implements com.
| |
| getAudio | back to summary |
|---|---|
| public Audio getAudio() Implements com.
| |
| getCanvas | back to summary |
|---|---|
| public Canvas getCanvas() | |
| getClipboard | back to summary |
|---|---|
| public Clipboard getClipboard() Implements com.
| |
| getFiles | back to summary |
|---|---|
| public Files getFiles() Implements com.
| |
| getFrameRate | back to summary |
|---|---|
| protected int getFrameRate() | |
| getGraphics | back to summary |
|---|---|
| public Graphics getGraphics() Implements com.
| |
| getInput | back to summary |
|---|---|
| public Input getInput() Implements com.
| |
| getJavaHeap | back to summary |
|---|---|
| public long getJavaHeap() Implements com.
| |
| getLogLevel | back to summary |
|---|---|
| public int getLogLevel() Implements com. Doc from com. Gets the log level.
| |
| getNativeHeap | back to summary |
|---|---|
| public long getNativeHeap() Implements com.
| |
| getNet | back to summary |
|---|---|
| public Net getNet() Implements com.
| |
| getPreferences | back to summary |
|---|---|
| public Preferences getPreferences(String name) Implements com. Doc from com. Returns the
| |
| getType | back to summary |
|---|---|
| public Application. Implements com.
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Implements com.
| |
| initialize | back to summary |
|---|---|
| private void initialize(ApplicationListener listener, LwjglApplicationConfiguration config) | |
| log | back to summary |
|---|---|
| public void log(String tag, String message) Implements com. Doc from com. Logs a message to the console or logcat
| |
| log | back to summary |
|---|---|
| public void log(String tag, String message, Throwable exception) Implements com. Doc from com. Logs a message to the console or logcat
| |
| postedException | back to summary |
|---|---|
| protected void postedException(Throwable ex, Throwable caller) | |
| postRunnable | back to summary |
|---|---|
| public void postRunnable(Runnable runnable) Implements com. Doc from com. Posts a
| |
| removeLifecycleListener | back to summary |
|---|---|
| public void removeLifecycleListener(LifecycleListener listener) Implements com. Doc from com. Removes the
| |
| resize | back to summary |
|---|---|
| protected void resize(int width, int height) Called when the canvas size changes. | |
| setApplicationLogger | back to summary |
|---|---|
| public void setApplicationLogger(ApplicationLogger applicationLogger) Implements com. Doc from com. Sets the current Application logger. Calls to
| |
| setCursor | back to summary |
|---|---|
public void setCursor(Cursor cursor)
| |
| setDisplayMode | back to summary |
|---|---|
| protected void setDisplayMode(int width, int height) | |
| setLogLevel | back to summary |
|---|---|
| public void setLogLevel(int logLevel) Implements com. Doc from com. Sets the log level.
| |
| setPostedRunnableStacktraces | back to summary |
|---|---|
| public void setPostedRunnableStacktraces(boolean postedRunnableStacktraces) When true, | |
| setTitle | back to summary |
|---|---|
| protected void setTitle(String title) | |
| start | back to summary |
|---|---|
| protected void start() Called after | |
| stop | back to summary |
|---|---|
| public void stop() | |
| stopped | back to summary |
|---|---|
| protected void stopped() Called when the game loop has stopped. | |