Class MapRenderer

java.lang.Object
com.trimblemaps.mapsdk.maps.renderer.MapRenderer
All Implemented Interfaces:
MapRendererScheduler
Direct Known Subclasses:
GLSurfaceMapRenderer, GLSurfaceViewMapRenderer, TextureViewMapRenderer

public abstract class MapRenderer extends Object implements MapRendererScheduler
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 Details

    • MapRenderer

      public MapRenderer(@NonNull android.content.Context context, String localIdeographFontFamily)
  • Method Details

    • onStart

      public void onStart()
    • onPause

      public void onPause()
    • onResume

      public void onResume()
    • onStop

      public void onStop()
    • onDestroy

      public void onDestroy()
    • setOnFpsChangedListener

      public void setOnFpsChangedListener(TrimbleMapsMap.OnFpsChangedListener listener)
    • 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:
      waitForEmpty in interface MapRendererScheduler
    • finalize

      @CallSuper protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • 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.