public class LwjglOffscreenBuffer extends LwjglContext implements java.lang.Runnable
JmeContext.Type| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.atomic.AtomicBoolean |
needClose |
clContext, clPlatform, created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, THREAD_NAME, timer| Constructor and Description |
|---|
LwjglOffscreenBuffer() |
| 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 |
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, createContextAttribs, destroy, determineMaxSamples, getFramebufferHeight, getFramebufferWidth, getGLVersion, getNumSamplesToUse, getOpenCLContext, getRenderer, getSettings, getSystemListener, getTimer, getWindowXPosition, getWindowYPosition, initContextFirstTime, initOpenCL, internalCreate, internalDestroy, isCreated, isRenderable, loadNatives, printContextInitInfo, reinitContext, setSettings, setSystemListener, waitForprotected void initInThread()
protected boolean checkGLError()
protected void runLoop()
protected void deinitInThread()
public void run()
run in interface java.lang.Runnablepublic void destroy(boolean waitFor)
JmeContextdestroy in interface JmeContextwaitFor - If true, will wait until the context is destroyed fully.public void create(boolean waitFor)
JmeContextcreate in interface JmeContextwaitFor - If true, will wait until context has initialized.public void restart()
JmeContextrestart in interface JmeContextpublic void setAutoFlushFrames(boolean enabled)
setAutoFlushFrames in interface JmeContextenabled - 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 JmeContextpublic MouseInput getMouseInput()
getMouseInput in interface JmeContextpublic KeyInput getKeyInput()
getKeyInput in interface JmeContextpublic JoyInput getJoyInput()
getJoyInput in interface JmeContextpublic TouchInput getTouchInput()
getTouchInput in interface JmeContextpublic void setTitle(java.lang.String title)
JmeContextsetTitle in interface JmeContexttitle - The new title of the display.