printf and show text

I have a simple funcion…

void showHelp(){

printf(“test”);

}

I put this in the main…

showHelp();

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.

Suggestions?

Thanks all,

Zath

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

Zath

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.