public class GLSurfaceViewMapRenderer extends MapRenderer implements GLSurfaceView.Renderer
GLSurfaceViewMapRenderer
encapsulates the GL thread and
GLSurfaceView
specifics to render the map.MapRenderer
Constructor and Description |
---|
GLSurfaceViewMapRenderer(Context context,
GLSurfaceView glSurfaceView,
String localIdeographFontFamily) |
Modifier and Type | Method and Description |
---|---|
void |
onDrawFrame(GL10 gl) |
void |
onStart() |
void |
onStop() |
void |
onSurfaceChanged(GL10 gl,
int width,
int height) |
void |
onSurfaceCreated(GL10 gl,
EGLConfig config) |
void |
queueEvent(Runnable runnable)
May be called from any thread.
|
void |
requestRender()
May be called from any thread.
|
finalize, onDestroy, onPause, onResume, setOnFpsChangedListener
public GLSurfaceViewMapRenderer(Context context, GLSurfaceView glSurfaceView, String localIdeographFontFamily)
public void onStop()
onStop
in class MapRenderer
public void onStart()
onStart
in class MapRenderer
public void onSurfaceCreated(GL10 gl, EGLConfig config)
onSurfaceCreated
in interface GLSurfaceView.Renderer
onSurfaceCreated
in class MapRenderer
public void onSurfaceChanged(GL10 gl, int width, int height)
onSurfaceChanged
in interface GLSurfaceView.Renderer
onSurfaceChanged
in class MapRenderer
public void onDrawFrame(GL10 gl)
onDrawFrame
in interface 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(Runnable runnable)
Schedules work to be performed on the MapRenderer thread.
queueEvent
in interface MapRendererScheduler
runnable
- the runnable to execute© 2015–2017 Mapbox. All rights reserved.