PDA

View Full Version : Text in Opengl



fobru
08-01-2003, 03:22 AM
What's the best way to put text in a viewport with opengl?
Is there API to do so are do you have to draw it yourself?

kehziah
08-01-2003, 03:35 AM
http://www.opengl.org/developers/code/features/fontsurvey/index.html is a good place to start

nexusone
08-01-2003, 03:55 AM
There are many diffrent ways to put text on the screen, I guess it all depends on your application as to which is best.

I would say that textured font's are maybe one of the top ones.

nehe.gamedev.net has tutors on the diffrent way's to put text on the screen.



Originally posted by fobru:
What's the best way to put text in a viewport with opengl?
Is there API to do so are do you have to draw it yourself?

starman
08-01-2003, 04:09 AM
nehe.gamedev.net lesson 13 is what I used for bitmapped text. If you only care about windows, you should have something working from their code in short order.