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

Author Topic: Sprite::setBlendMode() gone? [SFML 2.0]  (Read 3005 times)

0 Members and 1 Guest are viewing this topic.

Tenry

  • Full Member
  • ***
  • Posts: 120
  • Experienced Programmer
    • View Profile
    • Simon-Burchert.com
Sprite::setBlendMode() gone? [SFML 2.0]
« on: April 08, 2012, 08:26:44 pm »
Is the blending function for sprites gone in 2.0?
Please note that my previous display name was "Shy Guy".

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Sprite::setBlendMode() gone? [SFML 2.0]
« Reply #1 on: April 08, 2012, 08:36:50 pm »
Yes, blending is now set in sf::RenderStates, at draw time.
window.draw(sprite, sf::BlendMultiply);
Laurent Gomila - SFML developer

Tenry

  • Full Member
  • ***
  • Posts: 120
  • Experienced Programmer
    • View Profile
    • Simon-Burchert.com
Re: Sprite::setBlendMode() gone? [SFML 2.0]
« Reply #2 on: April 08, 2012, 09:33:15 pm »
Yes, blending is now set in sf::RenderStates, at draw time.
window.draw(sprite, sf::BlendMultiply);
Okay, I see.
Thx :)
Please note that my previous display name was "Shy Guy".