Legacy (immediate mode)family

glRotate*

Old call that rotated the built-in current matrix by angle degrees around the axis (x, y, z).

Removed from the core profile. Built-in matrix stack, removed from the core profile in OpenGL 3.2.

Signature

void glRotate{f|d}(T angle, T x, T y, T z);

How it works

Same story as glTranslate: it acted on the matrix selected with glMatrixMode, in degrees. Today: glm::rotate(model, glm::radians(angle), axis), sent to the shader with glUniformMatrix4fv.

Example

example.cpp
1glRotatef(angle, 0.0f, 1.0f, 0.0f);   // legacy: spin around Y