Click here to Skip to main content
15,610,088 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to draw a cylinder using only a one circle. But I don't know how should I do it. If anybody knows this, please explain me it. Thanks.
Steve Echols 24-Apr-12 1:08am    
Are you using glut.h? Google gluCylinder.
Jeremy Shin Woo 24-Apr-12 1:12am    
yes. I'm using glut.h
Steve Echols 24-Apr-12 1:16am    
There are tons of examples on how to draw cylinders with opengl on the web. NeHe is very useful (or was back when I was doing openGL :))
Jeremy Shin Woo 24-Apr-12 1:21am    
I know how draw a cylinder in openGL. But I want to draw it using only one circle
Steve Echols 24-Apr-12 1:32am    
Well, you can't draw circles in openGL, only simulate them using primitives like line strips, so I'm not sure what you mean by "one circle". Do you you mean "one for loop" iterating around the circle and drawing triangles or quads? You should be able to do this with a GL_QUAD_STRIP.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900