OpenGL newb question
Hi, I made a cool spinning triangle with OpenGL and I want to make it into a circle or square. How?
to draw a square, use glBegin( GL_QUADS ) instead of glBegin( GL_TRIANGLES ). as for the circle, there is no explicit support for circles in openGL
Use a quad to make it a square, but you'll need quadrics to draw a circle. Look at nehe's tutorial on quadrics, and use a disc or flat cylindar.
-~-The Cow of Darkness-~-
[edited by - cowsarenotevil on March 2, 2003 7:34:55 PM]
-~-The Cow of Darkness-~-
[edited by - cowsarenotevil on March 2, 2003 7:34:55 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement