Does anyone know how?
I could be mistaken, but as far as I know you can’t. I don’t think glut issues TexCoords for it’s primatives.
But, you can use the glu quadric to make a sphere with Texture:
struct GLUquadric* quad;
quad = gluNewQuadric();
gluQuadricTexture( quad, True ); //enable TexCoord generation
glBindTexture( GL_TEXTURE_2D, texName );
gluSphere( quad, 5, 10, 10 );
I seem to recall pictures of the Teapot prim. with a texture map on it. So there is probablly a way to get glut to add TexCoords, but I don’t use glut so I’m not sure.