How to write resize function in opengl given that glMatrixMode is deprecated?
In my old resize function I use glMatrixMode(GL_PROJECTION) and glMatrixMode(GL_MODELVIEW), but now that the fixed pipeline is replaced, I am not sure how the resize function should look like?