I would like to rotate a polygon (drawn by glutSolidCube) in a 3D enviroment. Suppose the white dot is the front view of X axis, my question is, I want to rotate it in this way:
instead of in this way:
just like the hour hand spinning around the clock center.
Maybe it is a simple question but I cannot figure it out. Hope you guys can help me. Thanks a lot:)