In OpenGL version 3.x the function glMatrixMode() specifies which matrix is the current matrix, i.e., which matrix stack is currently the target of all matrix operations based on the parameter, the choices being GL_MODELVIEW, GL_PROJECTION, and GL_TEXTURE. glMatrixMode() had been deprecated in OpenGL version 4.x. I have tried to find the equivalent way of performing the same effect in 4.x without success. I suspect there has been a change in philosophy in OpenGL 4 which I am overlooking. How is the glMatrixMode() equivalent performed in OpenGL version 4.x?