OpenGL newb question

Started by
2 comments, last by WaterMelon34 21 years, 1 month ago
Hi, I made a cool spinning triangle with OpenGL and I want to make it into a circle or square. How?
Advertisement
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-~-
Thanks guys!

This topic is closed to new replies.

Advertisement