🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Circle

Started by
2 comments, last by lc_overlord 16 years, 8 months ago
I couldn`t find it in NeHe (great thanks to this site - it save my life literally), how to create a filled circle (there is GL_TRIANGLE, or GL_QUAD, but not GL_CIRCLE...). I need a cilinder with closed ends, to draw a "person" - I`m creating a simulation with simple graphics :). Anyone could help me? I really would appriciate it.
Advertisement
There is no built-in circle.
You will need to draw it from triangles.You can use a triangle fan for example the first vertex will be the one in the center of the circle and the others will be the on the circle.
example
Read up on lesson 18 how to do cylinders, then add caps by using gluDisk, look it up on the glSDK

This topic is closed to new replies.

Advertisement