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

Author Topic: How make a transparent window in C++ ?  (Read 2878 times)

0 Members and 1 Guest are viewing this topic.

BartekMaciag

  • Newbie
  • *
  • Posts: 4
    • View Profile
How make a transparent window in C++ ?
« on: December 21, 2013, 02:07:26 pm »
Hi !

I want to do a transparent window, in first I tried do window without border and titlebar well: sf::RenderWindow window(sf::VideoMode( 320, 240 ), " ", 0") after this I did okno.clear(sf::Color::Color(0,0,0,0)) but it didn't work out, simply black screen, do you have any ideas ? Bartek 

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: How make a transparent window in C++ ?
« Reply #1 on: December 21, 2013, 02:19:57 pm »
This is not possible, you'll need OS specific functions to make your window transparent.
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
AW: How make a transparent window in C++ ?
« Reply #2 on: December 21, 2013, 02:20:12 pm »
SFML does not have such an option. If you want a transparent window, you'll need to do it yourself or search for the few similar topics on the forum. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything