From 4136520b0fb7162ce9fd19f1fc9fc0e8b6f7339d Mon Sep 17 00:00:00 2001 From: Diederick Niehorster Date: Fri, 30 Mar 2012 00:55:51 +0000 Subject: [PATCH] added todo git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1217 7f0cb862-5218-0410-a997-914c9d46530a --- src/fg_geometry.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fg_geometry.c b/src/fg_geometry.c index a40ec7b..97d1534 100644 --- a/src/fg_geometry.c +++ b/src/fg_geometry.c @@ -905,6 +905,12 @@ static void fghSphere( double radius, GLint slices, GLint stacks, GLboolean useW fgError("Failed to allocate memory in fghGenerateSphere"); } + /* TODO: Can do top and bottom as Triangle strip as well + (just need to repeat top/btoom vertex a lot). Then we can draw + the whole thing with just one index array and one for-looped call + to glDrawElements.. That'll make it easier to reuse code with other + Circular objects too + */ topIdx[0]=0; topIdx[1] = 1; /* repeat first slice's idx for closing off shape */ for (j=slices, idx=2; j>0; j--, idx++) -- 1.7.10.4