[SDL] SDL Color-masking Blitting?

Taylor Jeude terinfire at hotmail.com
Mon Feb 4 08:58:33 PST 2008


I was curious if there was a built-in way to mask a surface and then blit it.  Basically, say I have a font or an image, and it is black and white -- nothing else.  I want to be able to mask the image (say with color 255,0,128, so I have a kind of dark red-magenta), and then blit it.  Is there a way that is built in?  If not, then am I basically just needing to write my own specialized Blit function to do this?  Or if anyone's already done this and is kind and doesn't mind divulging some open-source code, that'd be pretty cool too!

_________________________________________________________________
Need to know the score, the latest news, or you need your Hotmail®-get your "fix".
http://www.msnmobilefix.com/Default.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080204/9e179c0a/attachment.htm 


More information about the SDL mailing list