Quote:Original post by Brother Bob
For drawing the text, no, it's not what you want.
If you insist on not using glWindowPos, this is what output should look like.glMatrixMode(GL_PROJECTION);glPushMatrix();glLoadIdentity();glOrtho(0, window_width, 0, window_height, -1, 1);glTranslated(0.5, 0.5, 0);glMatrixMode(GL_MODLVIEW);glPushMatrix();glLoadIdentity();glRasterPos2f(x, y);// draw text hereglPopMatrix();glMatrixMode(GL_PROJECTION);glPopMatrix();glMatrixMode(GL_MODLVIEW);
Or use glWindowPos and forget about the matrices being ocrrect or not.
It gave me a lot of problem... how should i use glWindowPos ? thanks again