[gameprogrammer] Re: [SDL, OpenGL and SDL_ttf] Thanks!
- From: "Mister" <m15t3rb055@xxxxxxxxxx>
- To: <gameprogrammer@xxxxxxxxxxxxx>
- Date: Fri, 3 Dec 2004 18:14:08 +0700
Thanks for all who replied my letter!
It really helped.
----- Original Message -----
From: "Bob Pendleton" <bob@xxxxxxxxxxxxx>
To: "Gameprogrammer Mailing List" <gameprogrammer@xxxxxxxxxxxxx>
Sent: Monday, November 29, 2004 10:26 PM
Subject: [gameprogrammer] Re: [SDL, OpenGL and SDL_ttf] Need help
SDL_TTF converts strings into bitmaps. You can convert those to OpenGL
textures and then draw with the textures to draw the text. It is pretty
easy to generate a texture for each character in the font and then
render any string using the the textures. That is what I do most of the
time. I also have a library
(http://gameprogrammer.com/polyfonts/polyfonts.html) where I have
converted a large number of fonts to geometry so they can be drawn
without using textures.
And, if you are working in C++ there is a great library called FTGL
(http://homepages.paradise.net.nz/henryj/code/) that converts ttf fonts
to OpenGL geometry and lets you do some very interesting things with it.
Bob Pendleton
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
Other related posts:
- » [gameprogrammer] Re: [SDL, OpenGL and SDL_ttf] Thanks!