public class JoglNewtCanvas extends JoglNewtAbstractDisplay implements JmeCanvasContext
JmeContext.Typeactive, animator, autoFlush, canvas, frameRate, useAwt, wasActive, wasAnimatingclContext, created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, THREAD_NAME, timer| Constructor and Description |
|---|
JoglNewtCanvas() |
| 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
|
com.jogamp.newt.awt.NewtCanvasAWT |
getCanvas() |
JmeContext.Type |
getType() |
void |
init(com.jogamp.opengl.GLAutoDrawable drawable) |
protected void |
initGLCanvas() |
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, 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, setSystemListenerprotected final void initGLCanvas()
initGLCanvas in class JoglNewtAbstractDisplaypublic 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 JoglNewtAbstractDisplayprotected void onCanvasAdded()
onCanvasAdded in class JoglNewtAbstractDisplaypublic void init(com.jogamp.opengl.GLAutoDrawable drawable)
init in interface com.jogamp.opengl.GLEventListenerprotected void startGLCanvas()
startGLCanvas in class JoglNewtAbstractDisplaypublic void display(com.jogamp.opengl.GLAutoDrawable glad)
display in interface com.jogamp.opengl.GLEventListenerpublic com.jogamp.newt.awt.NewtCanvasAWT getCanvas()
getCanvas in interface JmeCanvasContextpublic void dispose(com.jogamp.opengl.GLAutoDrawable arg0)
JoglNewtAbstractDisplaydispose in interface com.jogamp.opengl.GLEventListenerdispose in class JoglNewtAbstractDisplay