printf and show text

I have a simple funcion…

void showHelp(){



I put this in the main…


It shows it very briefly then disappears.
Well, no problem I told myself.

I put showHelp(); in the display in a pushMatrix.

It will NOT show.

All I need is some simple text. Nothing special with any fonts or anything.


Thanks all,


Nevermind. I just noticed that printf printed text to the output screen and not the working window with my graphics.


Yes, printf () prints output to the console window. If you want to print to your opengl window, simpliest way is to use glut library. But if you don’t want to use glut, the typical way is to render text as texture on quad for each letter.