PDA

View Full Version : Drawing text fast



Morglum
11-09-2001, 03:22 AM
Hi, that's about efficient text drawing :
If I'm drawing glut bitmap text, is there any way of drawing it directly in the frame buffer, or is it necessary to use a glOrtho projection, and then to return to a gluPerspective projection ? And if I want white text, regardless of the current material/lights, is it necessary to glDisable (GL_LIGHTING) etc ? Because all these state changes can take long !
Thanks for help !
Morglum

mikael_aronsson
11-09-2001, 05:29 AM
Hi !

I guess the answer to all your questions is "yes", try to collect all text drawing to one place, then you only need to switch projection one time.

Mikael

Morglum
11-09-2001, 11:00 AM
Thanks !

Now I'll be in peace with myself when writing slow code http://www.opengl.org/discussion_boards/ubb/wink.gif

Morglum