What you want to do seems to be exactly like this tutorial from NeHe (rotating cube). If you're new to OpenGL this is a good place to start learning.

http://nehe.gamedev.net/data/lessons....asp?lesson=05

/f