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

Author Topic: alpha to window  (Read 3480 times)

0 Members and 1 Guest are viewing this topic.

Feanor

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
alpha to window
« on: July 13, 2015, 12:57:24 pm »
Hi Everyone,

Here, I have a borderless window and I would like to create an image with transparency. transparency of an image works but on the first layer, the transparency that should display the desktop background appears black in place. (here I do not speak of complete transparency but defined by the image). Anyone know how to go about it?

Thank you in advance for the help window.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: alpha to window
« Reply #1 on: July 13, 2015, 01:21:59 pm »
There have been many posts about transparent windows, have you tried to search?

There's no direct way to do it with SFML, you'll have to do it with OS-specific APIs.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Feanor

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Re: alpha to window
« Reply #2 on: July 13, 2015, 01:34:42 pm »
of courses i searched. but the only thing i found is how to make a windows fully transparent. I'm programming on windows. What do i can use?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: alpha to window
« Reply #3 on: July 13, 2015, 01:43:12 pm »
of courses i searched.
So you should have found these threads (among many others), don't they help you? From glancing over them, they also seem to describe how to use an alpha channel rather than just a mask.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Feanor

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Re: alpha to window
« Reply #4 on: July 16, 2015, 12:46:09 am »
Thank you