PDA

View Full Version : printf and show text



Zath
06-26-2006, 09:25 AM
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

Zath
06-26-2006, 09:32 AM
Nevermind. I just noticed that printf printed text to the output screen and not the working window with my graphics.

Zath

glAren
06-27-2006, 03:22 AM
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.