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

Author Topic: Transparency Background  (Read 3312 times)

0 Members and 2 Guests are viewing this topic.

Ninjasturm

  • Newbie
  • *
  • Posts: 16
    • View Profile
Transparency Background
« on: November 05, 2010, 08:43:04 pm »
Hello Community,

how can i clear the background transparency.

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Transparency Background
« Reply #1 on: November 05, 2010, 09:02:09 pm »
Which transparency? The one of an image or the window? If it's the window then it's easy with a:

Code: [Select]

window.Clear();
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Ninjasturm

  • Newbie
  • *
  • Posts: 16
    • View Profile
Transparency Background
« Reply #2 on: November 05, 2010, 09:30:24 pm »
when i call clear it only clears my screen to a black color.
i tried sf::renderwindow::clear(sf::color(0,0,0,0)) but it doesn't works

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Transparency Background
« Reply #3 on: November 05, 2010, 09:33:53 pm »
Quote
when i call clear it only clears my screen to a black color.

And what do you want exactly?

Quote
i tried sf::renderwindow::clear(sf::color(0,0,0,255)) but it doesn't works

sf::Color(0, 0, 0, 255) is black.
Laurent Gomila - SFML developer

Ninjasturm

  • Newbie
  • *
  • Posts: 16
    • View Profile
Transparency Background
« Reply #4 on: November 05, 2010, 09:42:51 pm »
I want to see my desktop, is this possible?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Transparency Background
« Reply #5 on: November 05, 2010, 09:47:34 pm »
Of course not. SFML can handle transparency inside the target window, but not make the window itself transparent. This must be done with special OS functions.
Laurent Gomila - SFML developer

Ninjasturm

  • Newbie
  • *
  • Posts: 16
    • View Profile
Transparency Background
« Reply #6 on: November 05, 2010, 09:52:42 pm »
Ok, thanks.

 

anything