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, getGLVersion, getNumSamplesToUse, getOpenCLContext, getRenderer, getSettings, getTimer, initContextFirstTime, initOpenCL, internalCreate, internalDestroy, isCreated, isRenderable, loadNatives, printContextInitInfo, setSettings, setSystemListener, waitFor
protected void initInThread()
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
public KeyInput getKeyInput()
getKeyInput
in interface JmeContext
public JoyInput getJoyInput()
getJoyInput
in interface JmeContext
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.