public abstract class LwjglContext
extends java.lang.Object
implements com.jme3.system.JmeContext
| Modifier and Type | Field and Description |
|---|---|
protected LwjglContext |
clContext |
protected LwjglPlatform |
clPlatform |
protected java.util.concurrent.atomic.AtomicBoolean |
created |
protected java.lang.Object |
createdLock |
protected JInputJoyInput |
joyInput |
protected LwjglKeyInput |
keyInput |
protected com.jme3.system.SystemListener |
listener |
protected LwjglMouseInput |
mouseInput |
protected java.util.concurrent.atomic.AtomicBoolean |
renderable |
protected com.jme3.renderer.Renderer |
renderer |
protected com.jme3.system.AppSettings |
settings |
protected static java.lang.String |
THREAD_NAME |
protected com.jme3.system.Timer |
timer |
| Constructor and Description |
|---|
LwjglContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
create() |
protected org.lwjgl.opengl.ContextAttribs |
createContextAttribs() |
void |
destroy() |
protected int |
determineMaxSamples(int requestedSamples) |
protected int[] |
getGLVersion(java.lang.String renderer) |
protected int |
getNumSamplesToUse() |
com.jme3.opencl.Context |
getOpenCLContext() |
com.jme3.renderer.Renderer |
getRenderer() |
com.jme3.system.AppSettings |
getSettings() |
com.jme3.system.Timer |
getTimer() |
protected void |
initContextFirstTime()
Initializes the LWJGL renderer and input for the first time.
|
protected void |
initOpenCL() |
void |
internalCreate() |
void |
internalDestroy() |
boolean |
isCreated() |
boolean |
isRenderable() |
protected void |
loadNatives() |
protected void |
printContextInitInfo() |
protected void |
reinitContext()
Reinitializes the relevant details of the context.
|
void |
setSettings(com.jme3.system.AppSettings settings) |
void |
setSystemListener(com.jme3.system.SystemListener listener) |
protected void |
waitFor(boolean createdVal) |
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 com.jme3.system.AppSettings settings
protected com.jme3.renderer.Renderer renderer
protected LwjglKeyInput keyInput
protected LwjglMouseInput mouseInput
protected JInputJoyInput joyInput
protected com.jme3.system.Timer timer
protected com.jme3.system.SystemListener listener
protected LwjglPlatform clPlatform
protected LwjglContext clContext
public void setSystemListener(com.jme3.system.SystemListener listener)
setSystemListener in interface com.jme3.system.JmeContextprotected void printContextInitInfo()
protected int[] getGLVersion(java.lang.String renderer)
protected org.lwjgl.opengl.ContextAttribs createContextAttribs()
protected int determineMaxSamples(int requestedSamples)
protected void loadNatives()
protected int getNumSamplesToUse()
protected void reinitContext()
protected void initContextFirstTime()
protected void initOpenCL()
public void internalDestroy()
public void internalCreate()
public void create()
public void destroy()
protected void waitFor(boolean createdVal)
public boolean isCreated()
isCreated in interface com.jme3.system.JmeContextpublic boolean isRenderable()
isRenderable in interface com.jme3.system.JmeContextpublic void setSettings(com.jme3.system.AppSettings settings)
setSettings in interface com.jme3.system.JmeContextpublic com.jme3.system.AppSettings getSettings()
getSettings in interface com.jme3.system.JmeContextpublic com.jme3.renderer.Renderer getRenderer()
getRenderer in interface com.jme3.system.JmeContextpublic com.jme3.system.Timer getTimer()
getTimer in interface com.jme3.system.JmeContextpublic com.jme3.opencl.Context getOpenCLContext()
getOpenCLContext in interface com.jme3.system.JmeContext