MapRendererScheduler
GLSurfaceMapRenderer
, GLSurfaceViewMapRenderer
, TextureViewMapRenderer
public abstract class MapRenderer extends java.lang.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 | Description |
---|---|
MapRenderer(android.content.Context context,
GlyphsRasterizationMode glyphsRasterizationMode,
java.lang.String localIdeographFontFamily) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
finalize() |
|
protected void |
nativeReset() |
|
void |
onDestroy() |
|
protected void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 gl) |
|
void |
onPause() |
|
void |
onResume() |
|
void |
onStart() |
|
void |
onStop() |
|
protected void |
onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height) |
|
protected void |
onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.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(TrimbleMapsMap.OnFpsChangedListener listener) |
queueEvent, requestRender
public MapRenderer(@NonNull android.content.Context context, GlyphsRasterizationMode glyphsRasterizationMode, java.lang.String localIdeographFontFamily)
public void onStart()
public void onPause()
public void onResume()
public void onStop()
public void onDestroy()
public void setOnFpsChangedListener(TrimbleMapsMap.OnFpsChangedListener listener)
@CallSuper protected void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config)
@CallSuper protected void onSurfaceChanged(@NonNull javax.microedition.khronos.opengles.GL10 gl, int width, int height)
@CallSuper protected void onSurfaceDestroyed()
@CallSuper protected void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
@CallSuper protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
protected void nativeReset()
public void setMaximumFps(int maximumFps)
maximumFps
- Can be set to arbitrary integer values.