I have successfully completed a working program that draw a rotating sphere with a map of the world as the texture, simulating the earth in space. However, the texture is bound on it's side, i.e. all the continents are on their sides and the poles are shown as the sphere spins on the y-axis. I used the following reference to build the rotating sphere:
and the stb_image library (https://github.com/nothings/stb) to load a JPEG image for the texture.
I've tried a couple of things like: actual rotation of the JPEG image, rotating the array that holds the texture coordinates, rotating the array that holds the indices
Everything is good apart from the orientation of the image bound for texturing. Any advice/pointers would be appreciated.