glutSolidSphere VS. gluSphere

What is the difference in the glut versions and the glu versions of functions?

Just Curious.

The glut one does not create texture coordinates vs. the glu which has the option.

The main reason for glutSphere and other prebuilt objects was to replace the functions in the glaux library.

You would use glut_____Sphere when you just need a quick way to draw a simple object like in a demo or example.

gluSphere would be for if you need more advanced features.

Originally posted by jbarton:
[b]What is the difference in the glut versions and the glu versions of functions?

Just Curious. [/b]

So the glut functions are generally more simplistic versions of the glu functions.

Thanks,

check the source for glut at lib/glut directory. u will see for the sphere it actually calls glusphere

void APIENTRY
glutSolidSphere(GLdouble radius, GLint slices, GLint stacks)
{
QUAD_OBJ_INIT();
gluQuadricDrawStyle(quadObj, GLU_FILL);
gluQuadricNormals(quadObj, GLU_SMOOTH);
/* If we ever changed/used the texture or orientation state
of quadObj, we’d need to change it to the defaults here
with gluQuadricTexture and/or gluQuadricOrientation. */
gluSphere(quadObj, radius, slices, stacks);
}

Thanks All!