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

Author Topic: SetBlendMode in SFML2.0?  (Read 1715 times)

0 Members and 1 Guest are viewing this topic.

ChonDee

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
SetBlendMode in SFML2.0?
« on: January 22, 2012, 07:26:23 pm »
Hi,

I see that in 1.6 drawables have a SetBlendMode method, and I was trying to track this, or some alternative for it in the 2.0 documentation, but I didn't find anything. If I'm trying to call mySprite.SetBlendMode(...) currently it doesn't work.

Could someone help me out?

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
SetBlendMode in SFML2.0?
« Reply #1 on: January 22, 2012, 07:45:28 pm »
Take a look at the RenderStates.
This can be passed as the second parameter to your Draw function.
TGUI: C++ SFML GUI

ChonDee

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
SetBlendMode in SFML2.0?
« Reply #2 on: January 22, 2012, 07:54:20 pm »
Quote from: "texus"
Take a look at the RenderStates.
This can be passed as the second parameter to your Draw function.


Thanks a lot, I got it to work now!

 

anything