AWTGLCanvas,
which allows multiple LwjglAWTCanvas to be used in a single 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 | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ApplicationLogger | |
| pack-priv OpenALLwjglAudio | |
| pack-priv AWTGLCanvas | |
| pack-priv Cursor | |
| pack-priv final Array | |
| pack-priv LwjglFiles | |
| pack-priv LwjglGraphics | |
| pack-priv LwjglAWTInput | |
| pack-priv static int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv final Array | |
| pack-priv final ApplicationListener | |
| pack-priv int | |
| pack-priv final String | |
| pack-priv LwjglNet | |
| pack-priv Map | |
| pack-priv final Array | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | LwjglAWTCanvas(ApplicationListener listener, LwjglApplicationConfiguration config, LwjglAWTCanvas sharedContextCanvas)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addLifecycleListener(LifecycleListener listener)
Implements com. Adds a new |
| pack-priv void | |
| 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 |
| 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 | |
| public boolean | |
| public boolean | |
| 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 |
| public void | |
| public void | postRunnable(Runnable runnable)
Implements com. Posts a |
| public void | removeLifecycleListener(LifecycleListener listener)
Implements com. Removes the |
| pack-priv void | |
| protected void | |
| public void | setApplicationLogger(ApplicationLogger applicationLogger)
Implements com. Sets the current Application logger. |
| public void | |
| protected void | |
| pack-priv void | |
| public void | |
| protected void | |
| protected void | |
| public void | |
| protected void |
| applicationLogger | back to summary |
|---|---|
| pack-priv ApplicationLogger applicationLogger | |
| audio | back to summary |
|---|---|
| pack-priv OpenALLwjglAudio audio | |
| canvas | back to summary |
|---|---|
| pack-priv AWTGLCanvas canvas | |
| cursor | back to summary |
|---|---|
| pack-priv Cursor cursor | |
| executedRunnables | back to summary |
|---|---|
| pack-priv final Array<Runnable> executedRunnables | |
| files | back to summary |
|---|---|
| pack-priv LwjglFiles files | |
| graphics | back to summary |
|---|---|
| pack-priv LwjglGraphics graphics | |
| input | back to summary |
|---|---|
| pack-priv LwjglAWTInput input | |
| instanceCount | back to summary |
|---|---|
| pack-priv static int instanceCount | |
| lastHeight | back to summary |
|---|---|
| pack-priv int lastHeight | |
| lastWidth | back to summary |
|---|---|
| pack-priv int lastWidth | |
| lifecycleListeners | back to summary |
|---|---|
| pack-priv final Array<LifecycleListener> lifecycleListeners | |
| listener | back to summary |
|---|---|
| pack-priv final ApplicationListener listener | |
| logLevel | back to summary |
|---|---|
| pack-priv int logLevel | |
| logTag | back to summary |
|---|---|
| pack-priv final String logTag | |
| net | back to summary |
|---|---|
| pack-priv LwjglNet net | |
| preferences | back to summary |
|---|---|
| pack-priv Map<String, Preferences> preferences | |
| runnables | back to summary |
|---|---|
| pack-priv final Array<Runnable> runnables | |
| running | back to summary |
|---|---|
| pack-priv boolean running | |
| LwjglAWTCanvas | back to summary |
|---|---|
| public LwjglAWTCanvas(ApplicationListener listener) | |
| LwjglAWTCanvas | back to summary |
|---|---|
| public LwjglAWTCanvas(ApplicationListener listener, LwjglAWTCanvas sharedContextCanvas) | |
| LwjglAWTCanvas | back to summary |
|---|---|
| public LwjglAWTCanvas(ApplicationListener listener, LwjglApplicationConfiguration config) | |
| LwjglAWTCanvas | back to summary |
|---|---|
| public LwjglAWTCanvas(ApplicationListener listener, LwjglApplicationConfiguration config, LwjglAWTCanvas sharedContextCanvas) | |
| addLifecycleListener | back to summary |
|---|---|
| public void addLifecycleListener(LifecycleListener listener) Implements com. Doc from com. Adds a new
| |
| create | back to summary |
|---|---|
| pack-priv void create() | |
| 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
| |
| 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.
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() Returns true when the frame containing the canvas is the foreground window. | |
| isCurrent | back to summary |
|---|---|
| public boolean isCurrent() Test whether the canvas' context is current. | |
| 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
| |
| makeCurrent | back to summary |
|---|---|
| public void makeCurrent() Make the canvas' context current. It is highly recommended that the context is only made current inside the AWT thread (for example in an overridden paintGL()). | |
| 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
| |
| render | back to summary |
|---|---|
| pack-priv void render(boolean shouldRender) throws LWJGLException | |
| 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) | |
| setGlobals | back to summary |
|---|---|
| pack-priv void setGlobals() | |
| setLogLevel | back to summary |
|---|---|
| public void setLogLevel(int logLevel) Implements com. Doc from com. Sets the log level.
| |
| 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. | |
| Access | Constructor and Description |
|---|---|
| public |
| NonSystemPaint | back to summary |
|---|---|
| public NonSystemPaint(AWTGLCanvas canvas) | |