public class GLSurfaceViewMapRenderer extends MapRenderer implements android.opengl.GLSurfaceView.Renderer
GLSurfaceViewMapRenderer encapsulates the GL thread and
GLSurfaceView specifics to render the map.MapRenderer| Constructor and Description |
|---|
GLSurfaceViewMapRenderer(android.content.Context context,
android.opengl.GLSurfaceView glSurfaceView,
java.lang.String localIdeographFontFamily) |
| Modifier and Type | Method and Description |
|---|---|
void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 gl) |
void |
onStart() |
void |
onStop() |
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 config) |
void |
queueEvent(java.lang.Runnable runnable)
May be called from any thread.
|
void |
requestRender()
May be called from any thread.
|
finalize, onDestroy, onPause, onResume, setOnFpsChangedListenerpublic GLSurfaceViewMapRenderer(android.content.Context context,
android.opengl.GLSurfaceView glSurfaceView,
java.lang.String localIdeographFontFamily)
public void onStop()
onStop in class MapRendererpublic void onStart()
onStart in class MapRendererpublic void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig config)
onSurfaceCreated in interface android.opengl.GLSurfaceView.RendereronSurfaceCreated in class MapRendererpublic void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height)
onSurfaceChanged in interface android.opengl.GLSurfaceView.RendereronSurfaceChanged in class MapRendererpublic void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
onDrawFrame in interface android.opengl.GLSurfaceView.RendereronDrawFrame in class MapRendererpublic void requestRender()
Called from the renderer frontend to schedule a render.
requestRender in interface MapRendererSchedulerpublic void queueEvent(java.lang.Runnable runnable)
Schedules work to be performed on the MapRenderer thread.
queueEvent in interface MapRendererSchedulerrunnable - the runnable to execute