[gameprogrammer] Re: [SDL, OpenGL and SDL_ttf] Need help

My recollection was that it had a FEW OpenGL-compliant fonts it could 
use (ie: they'd all been converted into display lists which replicate 
the font's look).  Perhaps that was one of the other SDL font libraries 
I'd looked at...  Something you CAN do is take the font you want to use, 
write out your text on a SDL_Surface in memory, then convert THAT to a 
texture.

If you're changing the text a lot, it may even be more worthwhile to 
create a bitmap font to use (to improve your rendering speed -- 
shouldn't be a big issues except in a BIG game).

Sorry I can't help more,
--Scott

Robbert de Groot wrote:
>>From what I gather with SDL_TTF, it is only expected to work with
> image buffers in SDL and not directly with OpenGL.  It's goal is to
> rasterise strings with a TTF.  You certainly can use it with OpenGL
> if you use it to render the strings to a bitmap to be used as a
> texture in OpenGL.  It won't create polygons or meshes of the letters
> and render them out (Unless that is something new.)
> 
>  --- Mister <m15t3rb055@xxxxxxxxxx> wrote: 
> 


---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: