Original Post
Hey, i''m trying to render text in the projection matrix so it''s always infront of the camera. can someone please take a look at this or show some code were you''ve done this?
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective (45.0f, (GLfloat)(640)/(GLfloat)(480), // Calculate The Aspect Ratio Of The Window
1.0f, 100.0f);
glColor3f(1,0,0);
glRasterPos3f(0,0,-1.1);
glPrint("test");
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity ();
gluLookAt(cam.Pos.x,cam.Pos.y,cam.Pos.z,
cam.View.x,cam.View.y,cam.View.z,
cam.Up.x,cam.Up.y,cam.Up.z);
//draw my objects