Class MapRenderer
java.lang.Object
com.trimblemaps.mapsdk.maps.renderer.MapRenderer
- All Implemented Interfaces:
MapRendererScheduler
- Direct Known Subclasses:
GLSurfaceMapRenderer,GLSurfaceViewMapRenderer,TextureViewMapRenderer
The
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 Summary
ConstructorsConstructorDescriptionMapRenderer(android.content.Context context, String localIdeographFontFamily) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()protected voidvoidprotected voidonDrawFrame(javax.microedition.khronos.opengles.GL10 gl) voidonPause()voidonResume()voidonStart()voidonStop()protected voidonSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl, int width, int height) protected voidonSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config) protected voidvoidsetMaximumFps(int maximumFps) The max frame rate at which this render is rendered, but it can't excess the ability of device hardware.voidvoidsetSwapBehaviorFlush(boolean flush) voidMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.trimblemaps.mapsdk.maps.renderer.MapRendererScheduler
queueEvent, requestRender, waitForEmpty
-
Constructor Details
-
MapRenderer
-
-
Method Details
-
onStart
public void onStart() -
onPause
public void onPause() -
onResume
public void onResume() -
onStop
public void onStop() -
onDestroy
public void onDestroy() -
setOnFpsChangedListener
-
onSurfaceCreated
@CallSuper protected void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config) -
onSurfaceChanged
@CallSuper protected void onSurfaceChanged(@NonNull javax.microedition.khronos.opengles.GL10 gl, int width, int height) -
onSurfaceDestroyed
@CallSuper protected void onSurfaceDestroyed() -
onDrawFrame
@CallSuper protected void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl) -
setSwapBehaviorFlush
public void setSwapBehaviorFlush(boolean flush) -
waitForEmpty
public void waitForEmpty()- Specified by:
waitForEmptyin interfaceMapRendererScheduler
-
finalize
-
nativeReset
protected void nativeReset() -
setMaximumFps
public void setMaximumFps(int maximumFps) The max frame rate at which this render is rendered, but it can't excess the ability of device hardware.- Parameters:
maximumFps- Can be set to arbitrary integer values.
-