SFML community forums

Help => Graphics => Topic started by: Paki Programmer on May 28, 2012, 05:02:39 pm

Title: Color Masking in SFML 2.0 RC
Post by: Paki Programmer on May 28, 2012, 05:02:39 pm
How would you go about using color masks in SFML 2.0? I remember in SFML 1.6 if was something like image.CreateColorMask() or something like that. But now in 2.0 I can't seem to figure out how to do that, especially since sprites are now "textures" and not "images". Any help? Thanks
Title: Re: Color Masking in SFML 2.0 RC
Post by: Nexus on May 28, 2012, 05:55:22 pm
Load a sf::Image, create a color mask and load a sf::Texture from the image.