From 972da1fe62d5689856eedebeef1aaffd843da396 Mon Sep 17 00:00:00 2001 From: beuc Date: Sat, 24 Mar 2012 11:47:10 +0000 Subject: [PATCH] fg_geometry: add a couple comments git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1205 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/fg_geometry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freeglut/freeglut/src/fg_geometry.c b/freeglut/freeglut/src/fg_geometry.c index 2e0a3b3..572b7e3 100644 --- a/freeglut/freeglut/src/fg_geometry.c +++ b/freeglut/freeglut/src/fg_geometry.c @@ -70,6 +70,7 @@ static void fghDrawGeometrySolid(GLfloat *vertices, GLfloat *normals, GLubyte *v 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); @@ -199,7 +200,7 @@ static GLfloat cube_n[CUBE_NUM_FACES*3] = 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,