Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Color Masking in SFML 2.0 RC  (Read 1625 times)

0 Members and 1 Guest are viewing this topic.

Paki Programmer

  • Newbie
  • *
  • Posts: 31
    • View Profile
Color Masking in SFML 2.0 RC
« 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

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Color Masking in SFML 2.0 RC
« Reply #1 on: May 28, 2012, 05:55:22 pm »
Load a sf::Image, create a color mask and load a sf::Texture from the image.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: