Displaying characters

I am trying to display text to the screen, however, it doesn’t seem to be showing up if I use:

glRasterPos2f(10, 10);
glColor3f(255, 255, 255);
glutBitmapCharacter(GLUT_BITMAP_8_BY_13, ‘a’);

The “a” is not showing up anywhere. Not sure if this would influence that, but the matrixMode, is in GL_MODELVIEW and I am using gluLookAt(); to make it appear that the camera is moving around a 3D world.

and the viewport is set to glViewport(0, 0, w, h); with the perspective set to gluPerspective(90.0, aspectRatio, 0.1, 20.0);.
Where w=1280, h=800, and aspectRatio=1.6

Any help would be appreciated thank you.

I’m not sure it matters but you draw a 2D bitmap in a 3D mode, maybe you should switch to ortho mode.

Ya, you were right, got it working.

Thank you.