public class JoglDisplay extends JoglAbstractDisplay
JmeContext.Type
Modifier and Type | Field and Description |
---|---|
protected java.awt.Frame |
frame |
protected java.util.concurrent.atomic.AtomicBoolean |
needClose |
protected java.util.concurrent.atomic.AtomicBoolean |
needRestart |
protected boolean |
wasInited |
protected java.util.concurrent.atomic.AtomicBoolean |
windowCloseRequest |
active, animator, autoFlush, canvas, device, frameRate, useAwt, wasActive, wasAnimating
clContext, created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, THREAD_NAME, timer
Constructor and Description |
---|
JoglDisplay() |
Modifier and Type | Method and Description |
---|---|
protected void |
applySettings(AppSettings settings) |
void |
create(boolean waitFor)
Creates the context and makes it active.
|
protected void |
createGLFrame() |
void |
destroy(boolean waitFor)
Destroys the context completely, making it inactive.
|
void |
display(com.jogamp.opengl.GLAutoDrawable drawable)
Callback.
|
JmeContext.Type |
getType() |
void |
init(com.jogamp.opengl.GLAutoDrawable drawable) |
void |
restart()
Destroys and then re-creates the context.
|
void |
setTitle(java.lang.String title)
Sets the title of the display (if available).
|
displayChanged, dispose, getKeyInput, getMouseInput, getTouchInput, initGLCanvas, onCanvasAdded, onCanvasRemoved, reshape, setAutoFlushFrames, startGLCanvas
create, destroy, determineMaxSamples, getJoyInput, getNumSamplesToUse, getOpenCLContext, getRenderer, getSettings, getTimer, initContextFirstTime, initOpenCL, internalCreate, internalDestroy, isCreated, isRenderable, setSettings, setSystemListener, waitFor
protected java.util.concurrent.atomic.AtomicBoolean windowCloseRequest
protected java.util.concurrent.atomic.AtomicBoolean needClose
protected java.util.concurrent.atomic.AtomicBoolean needRestart
protected volatile boolean wasInited
protected java.awt.Frame frame
public JmeContext.Type getType()
protected void createGLFrame()
protected void applySettings(AppSettings settings)
public void init(com.jogamp.opengl.GLAutoDrawable drawable)
public void create(boolean waitFor)
JmeContext
waitFor
- If true, will wait until context has initialized.public void destroy(boolean waitFor)
JmeContext
waitFor
- If true, will wait until the context is destroyed fully.public void restart()
JmeContext
public void setTitle(java.lang.String title)
JmeContext
title
- The new title of the display.public void display(com.jogamp.opengl.GLAutoDrawable drawable)