I want to make a scoccer ball

Help!
I want to make a scoccer ball.
I mean I can make a sphere.
but I don’t know how to make textures mapping
to sphere.
and I know with when from No.1 until No.4 it uses,
it is possible but I don’t want to use ‘glTexGeni’. I want to program another way.
could you explain me concretely?

I hope your advice.

1.glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
2.glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
3.glEnable(GL_TEXTURE_GEN_S);
4.glEnable(GL_TEXTURE_GEN_T);

GL_SPHERE_MAP isn’t literally meant to texture a sphere…

try changing GL_SPHERE_MAP to GL_OBJECT_LINEAR.

if that doesn’t work for you, you can always generate your own texture coordinates.