org.openintents.samples.openglsensors
Class Cube
java.lang.Object
org.openintents.samples.openglsensors.Cube
public class Cube
- extends java.lang.Object
Displays a cube.
The cube is streched to form a part of a compass needle.
This cube is taken from the Android ApiDemos,
and has been modified for support of different colors.
|
Constructor Summary |
Cube()
|
|
Method Summary |
void |
draw(GL10 gl)
|
void |
drawColor(GL10 gl,
int red,
int green,
int blue)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cube
public Cube()
draw
public void draw(GL10 gl)
drawColor
public void drawColor(GL10 gl,
int red,
int green,
int blue)