Transformations

Rotation

glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)

Rotates subsequent objects around the axis (x, y, z), by angle degrees.

OpenGL rotations are also right-handed.

Rotations are based around the current origin, which might not be the center of the object being drawn.






next