PDA

View Full Version : How to Display 2D text



peterjack
07-09-2017, 11:29 PM
Ok It worked .. I tried drawing a Polygon instead of Text in 2D, while movin my Cam in 3D..

My problem was this:

glClear();

gluLookAt( cam values );

glPushMatrix();
drawStuff();
collision=determineCollision();
glPopMatrix();

glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glOrtho();
glMatrixMode(GL_MODELVIEW)

draw2DstuffHERE();

glMatrixMode(GL_PROJECTION);
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
glFlush();