View Full Version : How to rotate a single object and not the scene?
10-02-2009, 02: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, 03: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.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.