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

Author Topic: SFML Window is transparent  (Read 887 times)

0 Members and 2 Guests are viewing this topic.

Super z

  • Newbie
  • *
  • Posts: 2
    • View Profile
SFML Window is transparent
« on: July 28, 2023, 02:56:59 am »
Im new to SFML but every tutorial every window have a color on the background but my window don't have that

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: SFML Window is transparent
« Reply #1 on: July 28, 2023, 09:43:02 pm »
Remember to "display" it.

window.clear();
window.draw(stuff); // as required
window.display();
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Super z

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: SFML Window is transparent
« Reply #2 on: July 29, 2023, 02:18:55 pm »
It worked thank you =)