|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.system.lwjgl.LwjglContext
com.jme3.system.lwjgl.LwjglAbstractDisplay
public abstract class LwjglAbstractDisplay
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.jme3.system.JmeContext |
---|
JmeContext.Type |
Field Summary | |
---|---|
protected boolean |
autoFlush
|
protected int |
frameRate
|
protected java.util.concurrent.atomic.AtomicBoolean |
needClose
|
protected boolean |
wasActive
|
Fields inherited from class com.jme3.system.lwjgl.LwjglContext |
---|
created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, timer |
Constructor Summary | |
---|---|
LwjglAbstractDisplay()
|
Method Summary | |
---|---|
protected boolean |
checkGLError()
|
protected abstract void |
createContext(AppSettings settings)
Apply the settings, changing resolution, etc. |
protected void |
deinitInThread()
De-initialize in the OpenGL thread. |
void |
destroy(boolean waitFor)
Destroys the context completely, making it inactive. |
protected abstract void |
destroyContext()
Destroy the context. |
JoyInput |
getJoyInput()
|
KeyInput |
getKeyInput()
|
MouseInput |
getMouseInput()
|
TouchInput |
getTouchInput()
|
abstract JmeContext.Type |
getType()
|
protected boolean |
initInThread()
Does LWJGL display initialization in the OpenGL thread |
abstract void |
restart()
Restart if its 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 its a windowed display |
Methods inherited from class com.jme3.system.lwjgl.LwjglContext |
---|
create, createContextAttribs, destroy, getRenderer, getSettings, getTimer, initContextFirstTime, internalCreate, internalDestroy, isCreated, isRenderable, printContextInitInfo, setSettings, setSystemListener, waitFor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jme3.system.JmeContext |
---|
create |
Field Detail |
---|
protected java.util.concurrent.atomic.AtomicBoolean needClose
protected boolean wasActive
protected int frameRate
protected boolean autoFlush
Constructor Detail |
---|
public LwjglAbstractDisplay()
Method Detail |
---|
public abstract JmeContext.Type getType()
getType
in interface JmeContext
public abstract void setTitle(java.lang.String title)
setTitle
in interface JmeContext
title
- public abstract void restart()
restart
in interface JmeContext
protected abstract void createContext(AppSettings settings) throws org.lwjgl.LWJGLException
settings
-
org.lwjgl.LWJGLException
protected abstract void destroyContext()
protected boolean initInThread()
protected boolean checkGLError()
protected void runLoop()
protected void deinitInThread()
public void run()
run
in interface java.lang.Runnable
public JoyInput getJoyInput()
getJoyInput
in interface JmeContext
public MouseInput getMouseInput()
getMouseInput
in interface JmeContext
public KeyInput getKeyInput()
getKeyInput
in interface JmeContext
public TouchInput getTouchInput()
getTouchInput
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 void destroy(boolean waitFor)
JmeContext
destroy
in interface JmeContext
waitFor
- If true, will wait until the context is destroyed fully.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |