How to rotate a single object and not the scene?

The entire scene can be rotated with the glRotatef function. But can rotation of a single object in the scene be implemented?

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.