TexCoord for glutShapes

I’m trying to make a texture appear and have sucessfully loaded a texture and used the bind texture to bind it to a glutSolidSphere. The only problem is, how do I take care of all of the texture coords? I don’t know whether to use glTexCoord2d, 3d, etc… or anything else I’m missing. Sample code would be helpfull.

Please send responses to:

Thank you,
Chris White

You don’t specify texture coordinates when using GLUT primitives. GLUT handles them for you.

Antonio www.fatech.com/tech

That’s what I thought… Cool now I don’t have to do texture cood generation unless I really need to . Well I did finally get a textured sphere so alright!!



I didn’t think glut primitives generated texture coordinates on normals? Maybe I’ve had it wrong all these years…