PDA

View Full Version : Code for a "Ring" in GLUT



08-11-2002, 03:11 AM
Does anyone knows where can I get a code for a "Ring" or something like that in GLUT?

nexusone
08-11-2002, 08:37 AM
There is glutWireTorus or gluDisk....



Originally posted by yy:
Does anyone knows where can I get a code for a "Ring" or something like that in GLUT?

Cowboy
08-11-2002, 12:15 PM
Originally posted by yy:
Does anyone knows where can I get a code for a "Ring" or something like that in GLUT?

In GLUT you have glutSolidTorus and glutWireTorus. Download the documentation for glut 3.0. You find it here http://www.opengl.org/developers/documentation/glut.html.

Happy Hacking.
Don't forget to eat and sleep.
Cowboy

Tresher
08-12-2002, 02:45 AM
In the chapter that is about display lists of the Red Book you will find some code that yields the vertex coordinates for arbitrary detail settings using Quads.