public class ImmersiveGLRenderer
extends java.lang.Object
implements android.opengl.GLSurfaceView.Renderer
Constructor and Description |
---|
ImmersiveGLRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called when the viewer is no longer open.
|
boolean |
loadNewImage(android.graphics.Bitmap sphereImage)
Load a new bitmap into the view.
|
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 |
setRotation(double x,
double y)
Set the view rotation to the given values
|
public void setRotation(double x, double y)
x
- amount to rotate about the X axis, in radiansy
- amount to rotate about the Y axis, in radianspublic boolean loadNewImage(android.graphics.Bitmap sphereImage)
sphereImage
- new image to loadpublic void dispose()
public void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl, int width, int height)
onSurfaceChanged
in interface android.opengl.GLSurfaceView.Renderer
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config)
onSurfaceCreated
in interface android.opengl.GLSurfaceView.Renderer
public void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
onDrawFrame
in interface android.opengl.GLSurfaceView.Renderer