Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Window.clear - SFML 2.5.1
Print
Pages: [
1
]
Author
Topic: Window.clear - SFML 2.5.1 (Read 5575 times)
0 Members and 1 Guest are viewing this topic.
Studio Albert
Newbie
Posts: 1
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
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11032
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
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Window.clear - SFML 2.5.1