View Full Version : CPW & drawing text using TTF
08-30-2002, 09: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?
08-31-2002, 09: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.
09-01-2002, 04:53 AM
I'll try it.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.