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

Author Topic: Transperancy of RenderWindow  (Read 1979 times)

0 Members and 1 Guest are viewing this topic.

zac

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Transperancy of RenderWindow
« on: June 04, 2008, 08:35:07 pm »
Is there any way to make the background color of an RenderWindow invisible?

Kernelpanic

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://eisenholz.bplaced.net
Transperancy of RenderWindow
« Reply #1 on: June 04, 2008, 09:54:26 pm »
I am not sure, but try this:
Code: [Select]

YourRenderWindow.SetBackgroundColor(Color(0, 0, 255, 100));

Color is always a RGBa-color.
This should be transparent blue.

Edit:
Nett dich wiederzuentdecken, Zac. :)
"Jovycos"

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Transperancy of RenderWindow
« Reply #2 on: June 05, 2008, 11:10:11 am »
What would you expect to see behind the background color ? ;)

If you're talking about making the whole window transparent, this is a feature which is too much OS-specific, and only supported on modern systems.
Laurent Gomila - SFML developer

zac

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Transperancy of RenderWindow
« Reply #3 on: August 04, 2008, 11:56:54 pm »
Okay (this is what I thought, too), it is not THAT bad, by the way ;)