Draw a earth and rotate it?

Hi,I am a beginner.I have only used opengl in visual c++ 6.0 for a week.I have draw a sphere.But I don’t know how to paint it to make it looking like a real earth and how to
rotate it then. Longing for your help with great appreciation!!

Originally posted by jiangerlai:
Hi,I am a beginner.I have only used opengl in visual c++ 6.0 for a week.I have draw a sphere.But I don’t know how to paint it to make it looking like a real earth and how to
rotate it then. Longing for your help with great appreciation!!

For rotation, you should be using glRotatef( Angle, x, y, z ), you can look at the following for an example of it:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=04

Um, try using a texture map for the painting of the earth. Check out the following for an example:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=06

Thanks a lot!
I am a Chinese student. I am very glad that you answered my quention.