public abstract class JoglAbstractDisplay extends JoglContext implements com.jogamp.opengl.GLEventListener
JmeContext.Type
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.atomic.AtomicBoolean |
active |
protected com.jogamp.opengl.util.AnimatorBase |
animator |
protected java.util.concurrent.atomic.AtomicBoolean |
autoFlush |
protected com.jogamp.opengl.awt.GLCanvas |
canvas |
protected java.awt.GraphicsDevice |
device |
protected int |
frameRate |
protected boolean |
useAwt |
protected boolean |
wasActive |
protected boolean |
wasAnimating |
clContext, created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, THREAD_NAME, timer
Constructor and Description |
---|
JoglAbstractDisplay() |
Modifier and Type | Method and Description |
---|---|
void |
displayChanged(com.jogamp.opengl.GLAutoDrawable drawable,
boolean modeChanged,
boolean deviceChanged)
Callback.
|
void |
dispose(com.jogamp.opengl.GLAutoDrawable drawable)
Callback
|
KeyInput |
getKeyInput() |
MouseInput |
getMouseInput() |
TouchInput |
getTouchInput() |
protected void |
initGLCanvas() |
protected void |
onCanvasAdded() |
protected void |
onCanvasRemoved() |
void |
reshape(com.jogamp.opengl.GLAutoDrawable drawable,
int x,
int y,
int width,
int height)
Callback.
|
void |
setAutoFlushFrames(boolean enabled) |
protected void |
startGLCanvas() |
create, destroy, determineMaxSamples, getJoyInput, getNumSamplesToUse, getOpenCLContext, getRenderer, getSettings, getTimer, initContextFirstTime, initOpenCL, internalCreate, internalDestroy, isCreated, isRenderable, setSettings, setSystemListener, waitFor
protected java.awt.GraphicsDevice device
protected com.jogamp.opengl.awt.GLCanvas canvas
protected com.jogamp.opengl.util.AnimatorBase animator
protected java.util.concurrent.atomic.AtomicBoolean active
protected boolean wasActive
protected int frameRate
protected boolean useAwt
protected java.util.concurrent.atomic.AtomicBoolean autoFlush
protected boolean wasAnimating
protected void initGLCanvas()
protected void startGLCanvas()
protected void onCanvasAdded()
protected void onCanvasRemoved()
public KeyInput getKeyInput()
getKeyInput
in interface JmeContext
getKeyInput
in class JoglContext
public MouseInput getMouseInput()
getMouseInput
in interface JmeContext
getMouseInput
in class JoglContext
public TouchInput getTouchInput()
getTouchInput
in interface JmeContext
public void setAutoFlushFrames(boolean enabled)
setAutoFlushFrames
in interface JmeContext
enabled
- If enabled, the context will automatically flush
frames to the video card (swap buffers) after an update cycle.public void reshape(com.jogamp.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
reshape
in interface com.jogamp.opengl.GLEventListener
public void displayChanged(com.jogamp.opengl.GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged)
public void dispose(com.jogamp.opengl.GLAutoDrawable drawable)
dispose
in interface com.jogamp.opengl.GLEventListener