openframeworks/openFrameworks — pull request #869 by NickHardeman (2012-01-12 22:47:06+00:00)
Title: Of sphere develop - no GLUT

As recommended by Theo, did some simple benchmark tests and improvements.

The GLUT version and this GL version look almost identical.
http://www.flickr.com/photos/95943853@N00/6686691527/sizes/o/in/photostream/

I moved the drawing of the sphere into the renderers so that it stores the verts and eliminates redundant calculations.
The GL renderer, also has normals. For GL renderer wireframe mode it uses GL_QUAD_STRIPS, which is not defined as an ofPrimitiveMode? And triangle strip for filled mode.

Simple speed tests drawing 5000 spheres and measuring with ofGetElapsedTimeMillis()
ofScale - 231ms
GLUT - 243ms
Multiplying verts by radius - 280ms