public class GLTexturedSphereProgram
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GLTexturedSphereProgram.GLProgramException
Exception specialization thrown by this class
|
| Constructor and Description |
|---|
GLTexturedSphereProgram(android.graphics.Bitmap texture)
Create new textured sphere program.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(float[] viewTransform)
Draw the textured sphere using the given view transformation
|
void |
uploadTexture(android.graphics.Bitmap bitmap)
Upload new texture data, replacing any old texture data.
|
public GLTexturedSphereProgram(android.graphics.Bitmap texture)
throws GLTexturedSphereProgram.GLProgramException
texture - bitmap to use as sphere's texture or null to defer texture
uploadGLTexturedSphereProgram.GLProgramException - if an error occurs during program creationpublic void uploadTexture(android.graphics.Bitmap bitmap)
throws GLTexturedSphereProgram.GLProgramException
bitmap - new image to use as texture of the sphereGLTexturedSphereProgram.GLProgramException - if an error occurspublic void draw(float[] viewTransform)
throws GLTexturedSphereProgram.GLProgramException
viewTransform - transformation matrix to apply to sphereGLTexturedSphereProgram.GLProgramException - if an error occurs while drawing