public class JoglOffscreenBuffer extends JoglContext implements java.lang.Runnable
JmeContext.Type
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.atomic.AtomicBoolean |
needClose |
clContext, created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, THREAD_NAME, timer
Constructor and Description |
---|
JoglOffscreenBuffer() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkGLError() |
void |
create(boolean waitFor)
Creates the context and makes it active.
|
protected void |
deinitInThread() |
void |
destroy(boolean waitFor)
Destroys the context completely, making it inactive.
|
JoyInput |
getJoyInput() |
KeyInput |
getKeyInput() |
MouseInput |
getMouseInput() |
TouchInput |
getTouchInput() |
JmeContext.Type |
getType() |
protected void |
initContextFirstTime() |
protected void |
initInThread() |
void |
restart()
Destroys and then re-creates the context.
|
void |
run() |
protected void |
runLoop() |
void |
setAutoFlushFrames(boolean enabled) |
void |
setTitle(java.lang.String title)
Sets the title of the display (if available).
|
create, destroy, determineMaxSamples, getNumSamplesToUse, getOpenCLContext, getRenderer, getSettings, getTimer, initOpenCL, internalCreate, internalDestroy, isCreated, isRenderable, setSettings, setSystemListener, waitFor
protected void initInThread()
protected void initContextFirstTime()
initContextFirstTime
in class JoglContext
protected boolean checkGLError()
protected void runLoop()
protected void deinitInThread()
public void run()
run
in interface java.lang.Runnable
public void destroy(boolean waitFor)
JmeContext
destroy
in interface JmeContext
waitFor
- If true, will wait until the context is destroyed fully.public void create(boolean waitFor)
JmeContext
create
in interface JmeContext
waitFor
- If true, will wait until context has initialized.public void restart()
JmeContext
restart
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 JmeContext.Type getType()
getType
in interface JmeContext
public MouseInput getMouseInput()
getMouseInput
in interface JmeContext
getMouseInput
in class JoglContext
public KeyInput getKeyInput()
getKeyInput
in interface JmeContext
getKeyInput
in class JoglContext
public JoyInput getJoyInput()
getJoyInput
in interface JmeContext
getJoyInput
in class JoglContext
public TouchInput getTouchInput()
getTouchInput
in interface JmeContext
public void setTitle(java.lang.String title)
JmeContext
setTitle
in interface JmeContext
title
- The new title of the display.