Text for graphic axis and rotation

I wont to draw text in my graphic to have a legend.I wont to know what is the function to write text .

I have an other problem . Why when I make rotation in my graphic,the rotation don’t respect axis I have draw but horizontal and vertical axis? (For z axis I don’t have this problem)

If you are using windows, you can use wglUseFontOutlines, or wglUseFontBitmaps,

Or looke up texture mapped fonts…Also
check out nehe.gamedev.net…I am sure i saw some tutorials there on displaying text.