PDA

View Full Version : FTGL with textured fonts problem



jpummill
09-11-2002, 10:05 AM
Hi All,

I am trying to use FTGL with textured fonts. Everything seems to be working fine until I try to draw another object behind my fonts. I see a black border around the font when it is in front of another object.

I think this has something to do with my blending mode but I dont know enough about blending to make sure.

I am currently using the following code for blending:
glEnable(GL_TEXTURE_2D);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

Does anyone have a suggestion on how to work around this problem?

Thanks for any replies,
jpummill