[DirectDraw9] Sprite

Spiro

Member
Joined
Feb 5, 2003
Messages
15
Location
Croatia
Hi,
I trying to move sprite around background. Sprite background is white while background picture is colored. How can i tell to ddraw which color should be transparent?
 
You need to create a ColorKey object, set both its color value properties to white, and apply it to your sprite surface using its SetColorKey method. Then you specify the KeySource flag when you blit the surface.
 
Back
Top