Using the Code
The source code of the project attached here consists of an Android project containing four Java classes. The class Cube is the drawing class. A cube is defined by eight vertices indexed from 0 to 7. The array of indices below describes the order in which the vertices are called in order to draw each face of the cube.
The method performing the drawing is the method void draw (GL10 gl) thanks to the gl function glDrawElements. In this case, glDrawElements performs the 3D drawing by invoking GL_TRIANGLES which interprets each triple of vertices as a triangle.