RE: Sprite Masking

new topic     » topic index » view thread      » older message » newer message

You can create a mask (the size of the sprite) in which each element is true 
(all 1's) if it's a non-transparent color, and false (all 0's) if it's a 
transparent color. When you draw the sprite you calculate  sprite AND mask  
and  background AND (NOT mask).  Then you OR these two together.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu