public abstract class MapRenderer extends Object implements MapRendererScheduler
MapRenderer
encapsulates the GL thread.
Performs actions on the GL thread to manage the GL resources and render on the one end and acts as a scheduler to request work to be performed on the GL thread on the other.
Constructor and Description |
---|
MapRenderer(Context context,
String localIdeographFontFamily) |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
void |
onDestroy() |
protected void |
onDrawFrame(GL10 gl) |
void |
onPause() |
void |
onResume() |
void |
onStart() |
void |
onStop() |
protected void |
onSurfaceChanged(GL10 gl,
int width,
int height) |
protected void |
onSurfaceCreated(GL10 gl,
EGLConfig config) |
void |
setOnFpsChangedListener(MapboxMap.OnFpsChangedListener listener) |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
queueEvent, requestRender
public void onStart()
public void onPause()
public void onResume()
public void onStop()
public void onDestroy()
public void setOnFpsChangedListener(MapboxMap.OnFpsChangedListener listener)
@CallSuper protected void onSurfaceCreated(GL10 gl, EGLConfig config)
@CallSuper protected void onSurfaceChanged(GL10 gl, int width, int height)
@CallSuper protected void onDrawFrame(GL10 gl)
@CallSuper protected void finalize() throws Throwable
© 2015–2017 Mapbox. All rights reserved.