Archived

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

Greg386

Basic questions

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
Thanks for all the help...I''ve also heard about aux, and have seen it used once...what is the difference between that and glu?

Share this post


Link to post
Share on other sites