Class TextureViewMapRenderer
java.lang.Object
com.trimblemaps.mapsdk.maps.renderer.MapRenderer
com.trimblemaps.mapsdk.maps.renderer.textureview.TextureViewMapRenderer
- All Implemented Interfaces:
MapRendererScheduler
The
TextureViewMapRenderer encapsulates the GL thread and
TextureView specifics to render the map.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTextureViewMapRenderer(android.content.Context context, android.view.TextureView textureView, String localIdeographFontFamily, boolean translucentSurface) Create aMapRendererfor the givenTextureView -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidprotected voidonDrawFrame(javax.microedition.khronos.opengles.GL10 gl) Overridden to provide package accessvoidonStart()voidonStop()protected voidonSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl, int width, int height) Overridden to provide package accessprotected voidonSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config) Overridden to provide package accessprotected voidOverridden to provide package accessvoidqueueEvent(Runnable runnable) voidlongwaitForEmpty(long timeoutMillis) Methods inherited from class com.trimblemaps.mapsdk.maps.renderer.MapRenderer
finalize, nativeReset, onPause, onResume, setMaximumFps, setOnFpsChangedListener, setSwapBehaviorFlush, waitForEmpty
-
Constructor Details
-
TextureViewMapRenderer
public TextureViewMapRenderer(@NonNull android.content.Context context, @NonNull android.view.TextureView textureView, String localIdeographFontFamily, boolean translucentSurface) Create aMapRendererfor the givenTextureView- Parameters:
context- the current ContexttextureView- the TextureViewlocalIdeographFontFamily- the local font familytranslucentSurface- the translucency flag
-
-
Method Details
-
onSurfaceCreated
protected void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config) Overridden to provide package access- Overrides:
onSurfaceCreatedin classMapRenderer
-
onSurfaceChanged
protected void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl, int width, int height) Overridden to provide package access- Overrides:
onSurfaceChangedin classMapRenderer
-
onSurfaceDestroyed
protected void onSurfaceDestroyed()Overridden to provide package access- Overrides:
onSurfaceDestroyedin classMapRenderer
-
onDrawFrame
protected void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl) Overridden to provide package access- Overrides:
onDrawFramein classMapRenderer
-
requestRender
public void requestRender() -
queueEvent
-
waitForEmpty
public long waitForEmpty(long timeoutMillis) -
onStop
public void onStop()- Overrides:
onStopin classMapRenderer
-
onStart
public void onStart()- Overrides:
onStartin classMapRenderer
-
onDestroy
public void onDestroy()- Overrides:
onDestroyin classMapRenderer
-
isTranslucentSurface
public boolean isTranslucentSurface()
-