Nothing rotates because OpenGL does not "save" objects.
glRotatef, like glMultMatrixf, is used to modify the selected transformation matrix. This affects how they are done in the future. One sets up the matrices (and other things!), As you want, and then draws one object.
For more information, see Redbook and OpenGL for the difference between “saved mode” and “immediate mode”.
source share