public class OGLESContext
extends java.lang.Object
implements com.jme3.system.JmeContext, android.opengl.GLSurfaceView.Renderer, com.jme3.input.SoftTextDialogInput
| Modifier and Type | Field and Description |
|---|---|
protected AndroidInputHandler |
androidInput |
protected boolean |
autoFlush |
protected java.util.concurrent.atomic.AtomicBoolean |
created |
protected long |
lastUpdateTime |
protected com.jme3.system.SystemListener |
listener |
protected long |
minFrameDuration |
protected java.util.concurrent.atomic.AtomicBoolean |
needClose |
protected java.util.concurrent.atomic.AtomicBoolean |
renderable |
protected com.jme3.renderer.opengl.GLRenderer |
renderer |
protected com.jme3.system.AppSettings |
settings |
protected com.jme3.system.Timer |
timer |
| Constructor and Description |
|---|
OGLESContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
create() |
void |
create(boolean waitFor) |
android.opengl.GLSurfaceView |
createView(android.content.Context context)
createView creates the GLSurfaceView that the renderer will
draw to. |
protected void |
deinitInThread()
De-initialize in the OpenGL thread.
|
void |
destroy() |
void |
destroy(boolean waitFor) |
com.jme3.input.JoyInput |
getJoyInput() |
com.jme3.input.KeyInput |
getKeyInput() |
com.jme3.input.MouseInput |
getMouseInput() |
com.jme3.renderer.Renderer |
getRenderer() |
com.jme3.system.AppSettings |
getSettings() |
com.jme3.system.Timer |
getTimer() |
com.jme3.input.TouchInput |
getTouchInput() |
com.jme3.system.JmeContext.Type |
getType() |
protected void |
initInThread() |
boolean |
isCreated() |
boolean |
isRenderable() |
void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 gl) |
void |
onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height) |
void |
onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig cfg) |
void |
requestDialog(int id,
java.lang.String title,
java.lang.String initialValue,
com.jme3.input.controls.SoftTextDialogInputListener listener) |
void |
restart() |
void |
setAutoFlushFrames(boolean enabled) |
void |
setSettings(com.jme3.system.AppSettings settings) |
void |
setSystemListener(com.jme3.system.SystemListener listener) |
void |
setTitle(java.lang.String title) |
protected void |
waitFor(boolean createdVal) |
protected final java.util.concurrent.atomic.AtomicBoolean created
protected final java.util.concurrent.atomic.AtomicBoolean renderable
protected final java.util.concurrent.atomic.AtomicBoolean needClose
protected com.jme3.system.AppSettings settings
protected com.jme3.renderer.opengl.GLRenderer renderer
protected com.jme3.system.Timer timer
protected com.jme3.system.SystemListener listener
protected boolean autoFlush
protected AndroidInputHandler androidInput
protected long minFrameDuration
protected long lastUpdateTime
public com.jme3.system.JmeContext.Type getType()
getType in interface com.jme3.system.JmeContextpublic android.opengl.GLSurfaceView createView(android.content.Context context)
createView creates the GLSurfaceView that the renderer will
draw to. The result GLSurfaceView will receive input events and forward them to the Application. Any rendering will be done into the GLSurfaceView. Only one GLSurfaceView can be created at this time. The given configType specifies how to determine the display configuration.
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig cfg)
onSurfaceCreated in interface android.opengl.GLSurfaceView.Rendererprotected void initInThread()
protected void deinitInThread()
public void setSettings(com.jme3.system.AppSettings settings)
setSettings in interface com.jme3.system.JmeContextpublic void setSystemListener(com.jme3.system.SystemListener listener)
setSystemListener 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.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.JoyInput getJoyInput()
getJoyInput in interface com.jme3.system.JmeContextpublic com.jme3.input.TouchInput getTouchInput()
getTouchInput in interface com.jme3.system.JmeContextpublic com.jme3.system.Timer getTimer()
getTimer in interface com.jme3.system.JmeContextpublic void setTitle(java.lang.String title)
setTitle in interface com.jme3.system.JmeContextpublic boolean isCreated()
isCreated in interface com.jme3.system.JmeContextpublic void setAutoFlushFrames(boolean enabled)
setAutoFlushFrames in interface com.jme3.system.JmeContextpublic void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height)
onSurfaceChanged in interface android.opengl.GLSurfaceView.Rendererpublic void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
onDrawFrame in interface android.opengl.GLSurfaceView.Rendererpublic boolean isRenderable()
isRenderable in interface com.jme3.system.JmeContextpublic void create(boolean waitFor)
create in interface com.jme3.system.JmeContextpublic void create()
public void restart()
restart in interface com.jme3.system.JmeContextpublic void destroy(boolean waitFor)
destroy in interface com.jme3.system.JmeContextpublic void destroy()
protected void waitFor(boolean createdVal)
public void requestDialog(int id,
java.lang.String title,
java.lang.String initialValue,
com.jme3.input.controls.SoftTextDialogInputListener listener)
requestDialog in interface com.jme3.input.SoftTextDialogInput