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, wait
create, destroy, getTouchInput, getType, restart, setAutoFlushFrames, setTitle
protected 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)
JmeContext
setSystemListener
in interface JmeContext
public void setSettings(AppSettings settings)
setSettings
in interface JmeContext
settings
- 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 JmeContext
Renderer
are called
while this is false
, then the result is undefined.public AppSettings getSettings()
getSettings
in interface JmeContext
public Renderer getRenderer()
getRenderer
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 Timer getTimer()
getTimer
in interface JmeContext
public boolean isCreated()
isCreated
in interface JmeContext
public 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