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

Author Topic: Changing global alpha (Transparency)  (Read 2012 times)

0 Members and 1 Guest are viewing this topic.

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
Changing global alpha (Transparency)
« on: February 09, 2011, 05:35:16 pm »
Hello,
Is it possible to change the global alpha/transparency of all the contents on the window at once or do I have to change it individually for each object?

I tried using sf::RenderWindow::Clear(sf::Color(255,255,255,0)) but I believe that only changes the background settings with which the screen is cleared.

Thanks in advance  :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Changing global alpha (Transparency)
« Reply #1 on: February 09, 2011, 05:41:17 pm »
There's no easier way than changing it for every object, except if you use SFML 2.
Laurent Gomila - SFML developer

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
Changing global alpha (Transparency)
« Reply #2 on: February 09, 2011, 05:55:00 pm »
I'm still using SFML 1.6  but that's fine no big deal.
Thanks for the flash-like fast reply!

 

anything