Currently before I draw each GUI element, I do the following:
glMatrixMode(GL_PROJECTION); glPushMatrix(); glLoadIdentity(); // Initialise the model matrix. glMatrixMode(GL_MODELVIEW); glPushMatrix(); glLoadIdentity(); glOrtho(0, 640, 0, 480, -1.0, 1.0);
A GUI element is a button, or a piece of text etc…
Can glRasterPos be used to position things like quads? Or is only for rendering pixels and bitmaps?
Thanks