PDA

View Full Version : drawing a 3D donut



hermes
10-12-2000, 06:00 AM
I am creating an LED and I want to have 2 of them. the first is a sphere and the second is a ring around the sphere. I am using gluDisk at the moment mut that is only 2D and I want it to be 3D.

Does anyone have a quick and easy way to do this?

Khrob
10-12-2000, 06:06 AM
If you've got glut, call

glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint nsides, GLint nRings);

Happy coding!