Code for a "Ring" in GLUT

Does anyone knows where can I get a code for a “Ring” or something like that in GLUT?

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?

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

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.