public class TextureViewMapRenderer extends MapRenderer
TextureViewMapRenderer encapsulates the GL thread and
TextureView specifics to render the map.MapRenderer| Constructor and Description |
|---|
TextureViewMapRenderer(android.content.Context context,
android.view.TextureView textureView,
java.lang.String localIdeographFontFamily,
boolean translucentSurface)
Create a
MapRenderer for the given TextureView |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTranslucentSurface() |
void |
onDestroy() |
protected void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
Overridden to provide package access
|
void |
onStart() |
void |
onStop() |
protected void |
onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height)
Overridden to provide package access
|
protected void |
onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig config)
Overridden to provide package access
|
void |
queueEvent(java.lang.Runnable runnable) |
void |
requestRender() |
finalize, onPause, onResume, setOnFpsChangedListenerpublic TextureViewMapRenderer(@NonNull
android.content.Context context,
@NonNull
android.view.TextureView textureView,
java.lang.String localIdeographFontFamily,
boolean translucentSurface)
MapRenderer for the given TextureViewcontext - the current ContexttextureView - the TextureViewlocalIdeographFontFamily - the local font familytranslucentSurface - the translucency flagprotected void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig config)
onSurfaceCreated in class MapRendererprotected void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height)
onSurfaceChanged in class MapRendererprotected void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
onDrawFrame in class MapRendererpublic void requestRender()
public void queueEvent(java.lang.Runnable runnable)
public void onStop()
onStop in class MapRendererpublic void onStart()
onStart in class MapRendererpublic void onDestroy()
onDestroy in class MapRendererpublic boolean isTranslucentSurface()