git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1205
7f0cb862-5218-0410-a997-
914c9d46530a
if (numEdgePerFace==3)
glDrawArrays(GL_TRIANGLES, 0, numVertices);
else
+ /* The number of elements is passed as numVertices */
glDrawElements(GL_TRIANGLES, numVertices, GL_UNSIGNED_BYTE, vertIdxs);
glDisableClientState(GL_VERTEX_ARRAY);
0.0f, 0.0f,-1.0f
};
-/* Vertex indices */
+/* Vertex indices, as quads, before triangulation */
static GLubyte cube_vi[CUBE_VERT_PER_OBJ] =
{
0,1,2,3,