public abstract class LwjglWindow extends LwjglContext implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowSwapBuffers |
protected boolean |
autoFlush |
protected java.util.concurrent.atomic.AtomicBoolean |
needClose |
protected java.util.concurrent.atomic.AtomicBoolean |
needRestart |
protected boolean |
wasActive |
CL_GL_SHARING_POSSIBLE, clContext, created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, timer| Constructor and Description |
|---|
LwjglWindow(com.jme3.system.JmeContext.Type type) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(boolean waitFor) |
protected 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 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() |
com.jme3.system.JmeContext.Type |
getType() |
long |
getWindowHandle() |
protected boolean |
initInThread()
Does LWJGL display initialization in the OpenGL thread
|
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) |
void |
setTitle(java.lang.String title)
Set the title if it's a windowed display
|
protected void |
setWindowIcon(com.jme3.system.AppSettings settings)
Set custom icons to the window of this application.
|
protected void |
showWindow() |
create, destroy, determineMaxSamples, getNumSamplesToUse, getOpenCLContext, getRenderer, getSettings, getTimer, initContextFirstTime, initOpenCL, internalCreate, internalDestroy, isCreated, isRenderable, printContextInitInfo, setSettings, setSystemListener, waitForprotected final java.util.concurrent.atomic.AtomicBoolean needClose
protected final java.util.concurrent.atomic.AtomicBoolean needRestart
protected boolean wasActive
protected boolean autoFlush
protected boolean allowSwapBuffers
public com.jme3.system.JmeContext.Type getType()
getType in interface com.jme3.system.JmeContextpublic void setTitle(java.lang.String title)
setTitle in interface com.jme3.system.JmeContexttitle - the title to setpublic void restart()
restart in interface com.jme3.system.JmeContextprotected void createContext(com.jme3.system.AppSettings settings)
settings - the settings to apply when creating the context.protected void showWindow()
protected void setWindowIcon(com.jme3.system.AppSettings settings)
protected void destroyContext()
public void create(boolean waitFor)
create in interface com.jme3.system.JmeContextprotected boolean initInThread()
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.JmeContextpublic long getWindowHandle()