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

Author Topic: Window.clear - SFML 2.5.1  (Read 5582 times)

0 Members and 1 Guest are viewing this topic.

Studio Albert

  • Newbie
  • *
  • Posts: 1
    • View Profile
Window.clear - SFML 2.5.1
« on: August 06, 2021, 11:09:45 am »
Hi,

Where has gone the window.clear() methond in 2.5.1 ? I'm looking for applying simple color into the background of my really simple window...

Sebastien

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Window.clear - SFML 2.5.1
« Reply #1 on: August 06, 2021, 11:20:43 am »
Clear is defined on the sf::RenderWindow and not on sf::Window.

See the documentation: https://www.sfml-dev.org/documentation/2.5.1/classsf_1_1RenderTarget.php#a6bb6f0ba348f2b1e2f46114aeaf60f26
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything