Question: what is glmatrixmode in opengl?
Answer: glMatrixMode specifies which of the viewing pipeline matrices is to be modified - GL_PROJECTION means that subsequent commands will affect the projection transformation stack. Initially, there is a single matrix of some sort on the projection stack: a matrix ---------- ("----------" marks the bottom of the stack.)