What the code does
The demo loads in an image of the planet earth from NASA. Converts it into an OpenGL texture and maps it to the surface of a sphere. You will need to download the image from here and place it in the same location as the code. Images credits are included in the code. The image from the NASA site can be found here.