how to use glrotatef in opengl?
glRotatef() glRotatef(0.0, 0.0, 45.0, 1.0), The first argument specifies how many degree you want to rotate around an axis. The following three argument specifiy the x, y, z axis to rotate, respectively. In that statement, you're rotating the y and z axis 0 degrees.