Archived

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

Basic questions

This topic is 5778 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

Ok, I am just starting with opengl...On the site, I can''t figure out how to use opengl to make a sphere. I heard something about using glut to do this, but I don''t know how to use glut. Also, I think I heard that glut can be used to make a cube easily, instead of using the way where you have to type in the coordinates for each face. Thanks for the help!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I believe you''re looking for the glu* commands, which are a part of GLU, not GLUT . There are commands in GLU for making cubes, spheres and some more shapes. I don''t have a link here, but look for functions starting with glu... Hope it helps!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Read about these functions in MSDN:
gluNewQuadric()
gluDeleteQuadric()
gluSphere()

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
or you could just use the aux library , but most of ya will proberbly say the aux library sucks eh?

try this auxSolidSphere(1.0f);

then maybe look at the aux header file...... it has all sorts of functions for predefined shapes.

Share this post


Link to post
Share on other sites