Texturing a primitive ...

How con I texture a sphere or cube created using the opengl’s functions like glutSolidSphere …

Thanks.

Just enable texturing and load a texture, they have coordinates built in I think.

You won’t have much control over the texture coordinates. You could use texgen and/or the texture matrix to alter coordinates.