Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: drawing a 3D donut

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2000
    Posts
    26

    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?

  2. #2
    Junior Member Newbie
    Join Date
    Oct 2000
    Posts
    13

    Re: drawing a 3D donut

    If you've got glut, call

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

    Happy coding!
    I used to be indecisive; Now I'm not so sure...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •