Semicircle

Whats the function to draw a semicircle in opengl? Im using GLUT with C. Thanks

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