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, setOnFpsChangedListener
public TextureViewMapRenderer(@NonNull android.content.Context context, @NonNull android.view.TextureView textureView, java.lang.String localIdeographFontFamily, boolean translucentSurface)
MapRenderer
for the given TextureView
context
- 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 MapRenderer
protected void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl, int width, int height)
onSurfaceChanged
in class MapRenderer
protected void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
onDrawFrame
in class MapRenderer
public void requestRender()
public void queueEvent(java.lang.Runnable runnable)
public void onStop()
onStop
in class MapRenderer
public void onStart()
onStart
in class MapRenderer
public void onDestroy()
onDestroy
in class MapRenderer
public boolean isTranslucentSurface()