PDA

View Full Version : printing..



Nial
03-25-2002, 12:55 PM
In opengl I have a window 640x480.. is there a really easy piece of code to display text rather than going through the huge loading code of fonts etc?

nexusone
03-25-2002, 01:14 PM
Just put your text in a texture map!
The window size should not effect how you do the font!! Just the size of it, nehe has an example of using texture as a font.
There is also a Glut text function.
http://www.opengl.org/discussion_boards/ubb/smile.gif


Originally posted by Nial:
In opengl I have a window 640x480.. is there a really easy piece of code to display text rather than going through the huge loading code of fonts etc?

Furrage
03-26-2002, 12:36 PM
I noticed that a lot of people recommend using texture maps to display text. What is the advantage of this vs Bitmaps, ImageMaps and DisplayLists (Vectored font glyphs or whatever they are). Specifically speed, scalability and flexibility?

mikael_aronsson
03-27-2002, 12:03 AM
Hi !

Most OpenGL hardware today is aming at games so they do filled polygons and textures very fast, if you for example render a scene in wireframe mode and then in filled mode you will see that most hardware actually render the filled polygons faster then the wireframe...

Mikael