[SDL] transparent blitting

Phoenix Kokido kokido at postmark.net
Tue Jan 25 16:03:38 PST 2000


I personally blit the individual characters of the font to a seperate
surface uncolorkeyed, then I color key that surface and blit it to the
display.  I have'nt actually done any testing to see if that's faster,
but I don't want to do a bunch of transparent blits.  The actual color
key is usually something easy to remember, like 0xFF, 0xFF, 0xFF, or
0,0,0, or just one channel set to 0xFF.  And I usually load it in the
gimp to make eliminate any stray pixels that antialiasing screwed up.

Phoenix Kokido
members.xoom.com/kokido
kokido at postmark.net

wabe wrote:

> How are most of you doing transparent blitting - like you have a font
> you want
> to push on top of an image and you don't want big black boxes to come
> along
> with it? I'm in 32 bit depth mode...
> 
> -wabe
> 
> 



More information about the SDL mailing list