[SDL] Problems with text rendering using TTF

Nuno Santos developer at imaginando.net
Sat Dec 2 14:03:06 PST 2006


Hi,

I'm trying to use text rendering supported by SDL_ttf

I based myself on the glfont example and ported it to my application

i have a main file and another file to and opengl specfic issues:

so i have the code divided. i use extern variables to access  
information that reside in the main.

My problem is that the area where the text is supposed to appear, has  
a texture that i'm using in my 3D part. I don't understand why this  
happens, since the name for the text texture is "texture" and the  
other textures are call by Display Lists...

There are no problems opening the font or even rendering the text.  
Everything seems just fine...

Font is generally 46 big, and string is 46 big
w:217 h:46

x:100 y:100 w:217 h:46

Can anybody give some lights here?

Thx 




More information about the SDL mailing list