View Full Version : How to rotate a single object and not the scene?

10-02-2009, 01:25 AM
The entire scene can be rotated with the glRotatef function. But can rotation of a single object in the scene be implemented?

10-02-2009, 02:59 PM
First ensure your model view matrix is set, then glPushMatrix(), draw, rotate, glPopMatrix(). This ensure the rotation is only applied to the vertices between the push/pop.