PDA

View Full Version : glRasterPos question



stodge
03-13-2003, 01:14 PM
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

stodge
03-13-2003, 01:35 PM
Never mind, I mis-read the tutorial I was reading, thinking that I could use glRasterPos for rendering quads. :P