public abstract class JoglContext extends java.lang.Object implements JmeContext
JmeContext.Type| Modifier and Type | Field and Description |
|---|---|
protected Context |
clContext |
protected java.util.concurrent.atomic.AtomicBoolean |
created |
protected java.lang.Object |
createdLock |
protected JoyInput |
joyInput |
protected KeyInput |
keyInput |
protected SystemListener |
listener |
protected MouseInput |
mouseInput |
protected java.util.concurrent.atomic.AtomicBoolean |
renderable |
protected Renderer |
renderer |
protected AppSettings |
settings |
protected static java.lang.String |
THREAD_NAME |
protected Timer |
timer |
| Constructor and Description |
|---|
JoglContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
create() |
void |
destroy() |
protected int |
determineMaxSamples(int requestedSamples) |
JoyInput |
getJoyInput() |
KeyInput |
getKeyInput() |
MouseInput |
getMouseInput() |
protected int |
getNumSamplesToUse() |
Context |
getOpenCLContext() |
Renderer |
getRenderer() |
AppSettings |
getSettings() |
Timer |
getTimer() |
protected void |
initContextFirstTime() |
protected void |
initOpenCL() |
void |
internalCreate() |
protected void |
internalDestroy() |
boolean |
isCreated() |
boolean |
isRenderable() |
void |
setSettings(AppSettings settings) |
void |
setSystemListener(SystemListener listener)
Sets the listener that will receive events relating to context
creation, update, and destroy.
|
protected void |
waitFor(boolean createdVal) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, destroy, getTouchInput, getType, restart, setAutoFlushFrames, setTitleprotected static final java.lang.String THREAD_NAME
protected java.util.concurrent.atomic.AtomicBoolean created
protected java.util.concurrent.atomic.AtomicBoolean renderable
protected final java.lang.Object createdLock
protected AppSettings settings
protected Renderer renderer
protected Timer timer
protected SystemListener listener
protected KeyInput keyInput
protected MouseInput mouseInput
protected JoyInput joyInput
protected Context clContext
public void setSystemListener(SystemListener listener)
JmeContextsetSystemListener in interface JmeContextpublic void setSettings(AppSettings settings)
setSettings in interface JmeContextsettings - the display settings to use for the created context. If
the context has already been created, then restart() must be called
for the changes to be applied.public boolean isRenderable()
isRenderable in interface JmeContextRenderer are called
while this is false, then the result is undefined.public AppSettings getSettings()
getSettings in interface JmeContextpublic Renderer getRenderer()
getRenderer in interface JmeContextpublic MouseInput getMouseInput()
getMouseInput in interface JmeContextpublic KeyInput getKeyInput()
getKeyInput in interface JmeContextpublic JoyInput getJoyInput()
getJoyInput in interface JmeContextpublic Timer getTimer()
getTimer in interface JmeContextpublic boolean isCreated()
isCreated in interface JmeContextpublic void create()
public void destroy()
protected void waitFor(boolean createdVal)
protected void initContextFirstTime()
protected void initOpenCL()
public void internalCreate()
protected void internalDestroy()
protected int determineMaxSamples(int requestedSamples)
protected int getNumSamplesToUse()
public Context getOpenCLContext()
getOpenCLContext in interface JmeContext