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() |
protected void |
nativeReset() |
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) |
protected void |
onSurfaceDestroyed() |
void |
setMaximumFps(int maximumFps)
The max frame rate at which this render is rendered,
but it can't excess the ability of device hardware.
|
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)
protected void onSurfaceChanged(GL10 gl, int width, int height)
protected void onSurfaceDestroyed()
protected void onDrawFrame(GL10 gl)
protected void finalize() throws Throwable
protected void nativeReset()
public void setMaximumFps(int maximumFps)
maximumFps
- Can be set to arbitrary integer values.© 2015–2019 Mapbox. All rights reserved.