public class JoglCanvas extends JoglAbstractDisplay implements JmeCanvasContext
JmeContext.Typeactive, animator, autoFlush, canvas, device, frameRate, useAwt, wasActive, wasAnimatingclContext, created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, THREAD_NAME, timer| Constructor and Description |
|---|
JoglCanvas() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(boolean waitFor)
Creates the context and makes it active.
|
void |
destroy(boolean waitFor)
Destroys the context completely, making it inactive.
|
void |
display(com.jogamp.opengl.GLAutoDrawable glad) |
void |
dispose(com.jogamp.opengl.GLAutoDrawable arg0)
Callback
|
java.awt.Canvas |
getCanvas() |
JmeContext.Type |
getType() |
void |
init(com.jogamp.opengl.GLAutoDrawable drawable) |
protected void |
onCanvasAdded() |
protected void |
onCanvasRemoved() |
void |
restart()
Destroys and then re-creates the context.
|
void |
setTitle(java.lang.String title)
Sets the title of the display (if available).
|
protected void |
startGLCanvas() |
displayChanged, getKeyInput, getMouseInput, getTouchInput, initGLCanvas, reshape, setAutoFlushFramescreate, destroy, determineMaxSamples, getJoyInput, getNumSamplesToUse, getOpenCLContext, getRenderer, getSettings, getTimer, initContextFirstTime, initOpenCL, internalCreate, internalDestroy, isCreated, isRenderable, setSettings, setSystemListener, waitForclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJoyInput, getKeyInput, getMouseInput, getOpenCLContext, getRenderer, getSettings, getTimer, getTouchInput, isCreated, isRenderable, setAutoFlushFrames, setSettings, setSystemListenerpublic JmeContext.Type getType()
getType in interface JmeContextpublic void setTitle(java.lang.String title)
JmeContextsetTitle in interface JmeContexttitle - The new title of the display.public void restart()
JmeContextrestart in interface JmeContextpublic void create(boolean waitFor)
JmeContextcreate in interface JmeContextwaitFor - If true, will wait until context has initialized.public void destroy(boolean waitFor)
JmeContextdestroy in interface JmeContextwaitFor - If true, will wait until the context is destroyed fully.protected void onCanvasRemoved()
onCanvasRemoved in class JoglAbstractDisplayprotected void onCanvasAdded()
onCanvasAdded in class JoglAbstractDisplaypublic void init(com.jogamp.opengl.GLAutoDrawable drawable)
init in interface com.jogamp.opengl.GLEventListenerprotected void startGLCanvas()
startGLCanvas in class JoglAbstractDisplaypublic void display(com.jogamp.opengl.GLAutoDrawable glad)
display in interface com.jogamp.opengl.GLEventListenerpublic java.awt.Canvas getCanvas()
getCanvas in interface JmeCanvasContextpublic void dispose(com.jogamp.opengl.GLAutoDrawable arg0)
JoglAbstractDisplaydispose in interface com.jogamp.opengl.GLEventListenerdispose in class JoglAbstractDisplay