Beginners texture problem

Hello.

I understand how texture can be applied when using glBegin(GL_QUADS) and set coordinate with glTexCoord2f.

But I can’t find how to apply them on gluSphere or gluCylinder.

I’m sure it’s something obvious, can you help me ?

NeHe Lesson 18