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