PDA

View Full Version : Semicircle



11-17-2004, 04:29 AM
Whats the function to draw a semicircle in opengl? Im using GLUT with C. Thanks

dorbie
11-18-2004, 06:48 PM
OpenGL has no function to draw a semicircle. You would draw a semicircle using a series of triangles to approximate a circle with math calculations to compute the verex coordinates.

You could use the GLU utility function (from a related but separate library) gluPartialDisk.

Here's a description of that function:

http://www.hmug.org/man/3/gluPartialDisk.html