public abstract class LwjglAbstractDisplay extends LwjglContext implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowSwapBuffers |
protected boolean |
autoFlush |
protected int |
frameRate |
protected java.util.concurrent.atomic.AtomicBoolean |
needClose |
protected boolean |
wasActive |
clContext, clPlatform, created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, THREAD_NAME, timer| Constructor and Description |
|---|
LwjglAbstractDisplay() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkGLError() |
protected abstract void |
createContext(com.jme3.system.AppSettings settings)
Apply the settings, changing resolution, etc.
|
protected void |
deinitInThread()
De-initialize in the OpenGL thread.
|
void |
destroy(boolean waitFor) |
protected abstract void |
destroyContext()
Destroy the context.
|
com.jme3.input.JoyInput |
getJoyInput() |
com.jme3.input.KeyInput |
getKeyInput() |
com.jme3.input.MouseInput |
getMouseInput() |
com.jme3.input.TouchInput |
getTouchInput() |
abstract com.jme3.system.JmeContext.Type |
getType() |
protected boolean |
initInThread()
Does LWJGL display initialization in the OpenGL thread
|
abstract void |
restart()
Restart if it's a windowed or full-screen display.
|
void |
run() |
protected void |
runLoop()
execute one iteration of the render loop in the OpenGL thread
|
void |
setAutoFlushFrames(boolean enabled) |
abstract void |
setTitle(java.lang.String title)
Set the title if it's a windowed display
|
create, createContextAttribs, destroy, determineMaxSamples, getGLVersion, getNumSamplesToUse, getOpenCLContext, getRenderer, getSettings, getTimer, initContextFirstTime, initOpenCL, internalCreate, internalDestroy, isCreated, isRenderable, loadNatives, printContextInitInfo, reinitContext, setSettings, setSystemListener, waitForprotected java.util.concurrent.atomic.AtomicBoolean needClose
protected boolean wasActive
protected int frameRate
protected boolean autoFlush
protected boolean allowSwapBuffers
public abstract com.jme3.system.JmeContext.Type getType()
getType in interface com.jme3.system.JmeContextpublic abstract void setTitle(java.lang.String title)
setTitle in interface com.jme3.system.JmeContexttitle - the desired titlepublic abstract void restart()
restart in interface com.jme3.system.JmeContextprotected abstract void createContext(com.jme3.system.AppSettings settings)
throws org.lwjgl.LWJGLException
settings - the AppSettings to applyorg.lwjgl.LWJGLException - for various error conditionsprotected abstract void destroyContext()
protected boolean initInThread()
protected boolean checkGLError()
protected void runLoop()
protected void deinitInThread()
public void run()
run in interface java.lang.Runnablepublic com.jme3.input.JoyInput getJoyInput()
getJoyInput in interface com.jme3.system.JmeContextpublic com.jme3.input.MouseInput getMouseInput()
getMouseInput in interface com.jme3.system.JmeContextpublic com.jme3.input.KeyInput getKeyInput()
getKeyInput in interface com.jme3.system.JmeContextpublic com.jme3.input.TouchInput getTouchInput()
getTouchInput in interface com.jme3.system.JmeContextpublic void setAutoFlushFrames(boolean enabled)
setAutoFlushFrames in interface com.jme3.system.JmeContextpublic void destroy(boolean waitFor)
destroy in interface com.jme3.system.JmeContext