drawing a 3D donut

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?

If you’ve got glut, call

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

Happy coding!