public class OpalRenderer extends java.lang.Object implements MapViewRenderer
Modifier and Type | Field and Description |
---|---|
protected float |
halfResolutionFactor |
protected int |
height |
protected android.graphics.Bitmap |
icon |
protected int |
opalHeight |
protected int |
opalWidth |
protected TextureShader |
shader |
protected int[] |
textures |
protected int |
width |
Modifier | Constructor and Description |
---|---|
protected |
OpalRenderer(MapView mapView,
android.content.Context context) |
protected |
OpalRenderer(MapView mapView,
android.content.Context context,
boolean logRendering) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
protected void |
drawCCP() |
void |
finish() |
void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 gl) |
void |
onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height) |
void |
onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig config) |
void |
resume() |
OpalRenderer |
setCcpId(int id) |
void |
setHalfResolution(boolean halfResolution,
float halfResolutionFactor) |
void |
setOnInitializeListener(OnInitializeListener listener) |
protected TextureShader shader
protected float halfResolutionFactor
protected int width
protected int height
protected int[] textures
protected android.graphics.Bitmap icon
protected int opalWidth
protected int opalHeight
protected OpalRenderer(MapView mapView, android.content.Context context, boolean logRendering)
protected OpalRenderer(MapView mapView, android.content.Context context)
public OpalRenderer setCcpId(int id)
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config)
onSurfaceCreated
in interface android.opengl.GLSurfaceView.Renderer
public void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl, int width, int height)
onSurfaceChanged
in interface android.opengl.GLSurfaceView.Renderer
public void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
onDrawFrame
in interface android.opengl.GLSurfaceView.Renderer
protected void drawCCP()
public void setOnInitializeListener(OnInitializeListener listener)
setOnInitializeListener
in interface MapViewRenderer
public void setHalfResolution(boolean halfResolution, float halfResolutionFactor)
setHalfResolution
in interface MapViewRenderer
public void cleanup()
cleanup
in interface MapViewRenderer
public void finish()
finish
in interface MapViewRenderer
public void resume()
resume
in interface MapViewRenderer