Basic questions

Started by
5 comments, last by Greg386 22 years, 2 months ago
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!
Advertisement
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!
thanks, but then what is glut used for?
Cross platform window creation and input abstraction, among other things.

Read about these functions in MSDN:
gluNewQuadric()
gluDeleteQuadric()
gluSphere()
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.
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?

This topic is closed to new replies.

Advertisement