public class GLSurfaceViewMapRenderer extends MapRenderer
GLSurfaceViewMapRenderer
encapsulates the GL thread and
GLSurfaceView
specifics to render the map.MapRenderer
Constructor and Description |
---|
GLSurfaceViewMapRenderer(Context context,
MapboxGLSurfaceView glSurfaceView,
GlyphsRasterizationMode glyphsRasterizationMode,
java.lang.String localIdeographFontFamily) |
Modifier and Type | Method and Description |
---|---|
void |
onDestroy() |
void |
onDrawFrame(GL10 gl) |
void |
onPause() |
void |
onResume() |
void |
onStart() |
void |
onStop() |
void |
onSurfaceChanged(GL10 gl,
int width,
int height) |
void |
onSurfaceCreated(GL10 gl,
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(Context context, MapboxGLSurfaceView 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(GL10 gl, EGLConfig config)
onSurfaceCreated
in class MapRenderer
protected void onSurfaceDestroyed()
onSurfaceDestroyed
in class MapRenderer
public void onSurfaceChanged(GL10 gl, int width, int height)
onSurfaceChanged
in class MapRenderer
public void onDrawFrame(GL10 gl)
onDrawFrame
in class MapRenderer
public void requestRender()
Called from the renderer frontend to schedule a render.
public void queueEvent(java.lang.Runnable runnable)
Schedules work to be performed on the MapRenderer thread.
runnable
- the runnable to execute