title: Elegant way the find the Vertices of a Cube
body: <p>Nearly every OpenGL tutorial lets you implement drawing a cube. Therefore the vertices of the cube are needed. In the example code I saw a long list defining every vertex. But I would like to compute the vertices of a cube rather that using a overlong list of precomputed coordinates.</p>
  
  <p>A cube is made of eight vertices and twelve triangles. Vertices are defined by x, y, and z. Triangles are defined each by the indexes of three vertices.</p>
  
  <p>Is there an elegant way to compute the vertices and the <a href="http://open.gl/drawing#Elementbuffers">element</a> indexes of a cube?</p>