PDA

View Full Version : How to display a simple text



santhosh
03-11-2002, 07:41 PM
I want to display a simple text ( Not 3D now!! )... Could any one help me.....

iNsaNEiVaN
03-11-2002, 07:56 PM
I think the standard thing to do nowadays is textured-text. What you do is have a .bmp image with all the letters of the alphabet on it. Then you split that texture up into the individual letters, make a function to print those letters, and you've got it http://www.opengl.org/discussion_boards/ubb/smile.gif

richardve
03-11-2002, 08:35 PM
..or simply have a look at this tutorial:

http://nehe.gamedev.net/tutorials/lesson13.asp

yw.

kehziah
03-12-2002, 01:35 AM
// This is not an advanced question
// please post in the beginners forum

If you choose textured fonts as suggested by iNsaNEiVaN, you may be interested in glFont, a very handy library that comes along with a font texture generator.

google search :
key words : glFont
1st link : http://students.cs.byu.edu/~bfish/glfont.php

Using nehe tutorial is fine as long as you don't have too much text to draw (because his method is rather slow).

santhosh
03-12-2002, 02:14 AM
Originally posted by kehziah:
// This is not an advanced question
// please post in the beginners forum

If you choose textured fonts as suggested by iNsaNEiVaN, you may be interested in glFont, a very handy library that comes along with a font texture generator.

google search :
key words : glFont
1st link : http://students.cs.byu.edu/~bfish/glfont.php

Using nehe tutorial is fine as long as you don't have too much text to draw (because his method is rather slow).

I'm very sorry for posting this question in the advanced catagory... Once again sorry...

henryj
03-12-2002, 11:08 AM
Try scrolling down the page. There are 2 other current discussions about text rendering, to which I have replied thus...

try... http://homepages.paradise.net.nz/henryj/code/index.html