texture mapping spheres?

hey everyone. Do any of you know how to texture map a sphere? I am developing a solar system simulation, but I can’t seem to find how to map spheres…any help would be appreciated…thanks

see ‘paul bourkes sphere’ google

Are you using GLU to render spheres? Then
there is a quadric function , I can’t remember name, but the fact is, that it can apply texture coordinates to quadric objects.