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

Author Topic: Just wondering does the SFML Render window allow for clearing with...  (Read 3107 times)

0 Members and 1 Guest are viewing this topic.

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
...a transparent color?

Because I'm messing with an idea of sticking an SFML window on a form and having the form itself have a full background image covering it but still having it visible through the SFML window itself too.  Or do I just make the SFML window fill the form and stick the smaller form controls on top of it for this effect?
I have many ideas but need the help of others to find way to make use of them.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Just wondering does the SFML Render window allow for clearing with...
« Reply #1 on: December 20, 2014, 12:56:13 am »
SFML doesn't do transparent windows, no. You'll need to get OS specific for that.
I remember figuring out the way to do it for Windows (it's really simple, actually) but not sure about other systems.

EDIT: I didn't initially notice that this was in the DotNet forum. I assume that there is a DotNet version to do it that isn't far from the c++. If you can convert, or would just like a hint as to what to look for, take a look at this c++ example:
http://en.sfml-dev.org/forums/index.php?topic=16776.msg120587#msg120587
« Last Edit: December 20, 2014, 01:20:05 am by Hapax »
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything