• Advertisement

Archived

This topic is now archived and is closed to further replies.

How do I make a cylinder directly in the code ?

This topic is 6051 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I make a cylinder directly in the code ? Thanks !

Share this post


Link to post
Share on other sites
Advertisement
you could hardcode the sphere, which would be the hard way, or you could use glut. I don''t remember the exact parameters, but it''s some thin like this:
GLU_QUADRIC *q;
glutQuadric(something I don''t remember);
I don''t even know if those names are correct, but do a search on Opengl.org for glut quadrics. you should find it.


Never underestimante the power of stupid people in large groups.

Share this post


Link to post
Share on other sites

  • Advertisement