PDA

View Full Version : CPW & drawing text using TTF



oshapir
08-30-2002, 08:09 AM
I'm drawing some text strings using th CPW TTF functions, but every letter gets a black background behind it.

How do I get rid of the background and write letters with transparent background?

jmathies
08-31-2002, 08:01 PM
Take a look at the text examples, specifically windowstyles.c. You have to use blending
with fonts since they are anti aliased if your drawing them with RGBA or similar drawing
styles in cpwFontMode.

Overall, fonts are drawn to the screen using glDrawPixels.. so I'd suggest reading
the GL docs on this call to get a feel for how the fonts can be written to the screen.

Regards,
Jim

oshapir
09-01-2002, 03:53 AM
Thanks,
I'll try it.

Oren Shapir.