Displaying Text and shapes

I want to be able to write text to the screen as well as draw some shapes. At the moment i can draw text or draw shapes, not both. It seems to be to do with the font texture. when i comment out the line that loads the texture for the font, the shapes will display and the text will just be a series of small squares. I am using tutorial code from http://nehe.gamedev.net/ for my font generation.

Any help would be great.


Sounds like you need to disable GL_TEXTURE_2D for the objects and enable for the text.
I guess the objects are there but you don’t see them because they are black on black?
A good debugging aid is to not use a black clear color during development. Use one which you don’t expect to occur in your image like magenta: glClearColor(1.0f, 0.0f, 1.0f, 0.0f).

Thank you for your reply, i will try that out.