Deprecated function replacements

The OpenGL 3.0 specification deprecated some features, and most of these have been removed from the OpenGL 3.1 specfication and beyond. GLM provides some replacement functions. Many of these functions come from the GLM_GTC_matrix_transform: Matrix transform functions. extension.

OpenGL function replacements

glRotate[fd]
glm::rotate
glScale[fd]
glm::scale
glTranslate[fd]
glm::translate
glLoadIdentity
The default constructor of all matrix types creates an identity matrix.
glMultMatrix[fd]
Per the GLSL specification, the multiplication operator is overloaded for all matrix types. Multiplying two matrices together will perform matrix multiplication.
glLoadTransposeMatrix[fd]
glm::transpose
glMultTransposeMatrix
Combine the last two.
glFrustum
glm::frustum
glOrtho
glm::ortho
gluLookAt
glm::lookAt

GLU function replacements

gluOrtho2D
glm::ortho
gluPerspective
glm::perspective
gluProject
glm::project
gluUnProject
glm::unProject