SFML community forums
Help => Graphics => Topic started by: fixus971 on September 22, 2008, 11:33:37 pm
-
Hi, great work but where is SetBackgroundColor in SVN version?
Thanks
-
It appears to not be in SVN documentation, do you know what file it would have been in?
-
sf::RenderWindow Class in 1.3:
http://www.sfml-dev.org/documentation/1.3/classsf_1_1RenderWindow.htm
void SetBackgroundColor (const Color &Col)
Change the background color of the window.
-
It has been replaced with Clear(color) (to call in the main loop to clear the whole screen).
It's explained in the doc and tutorials of SVN version on the website.
-
:P Perfect.. now is better with clear. :P
but it appears as a Fill function rater than clear. :roll:
for me is Ok, good work, byebye
Thanks :P
-
:P Perfect.. now is better with clear. :P
but it appears as a Fill function rater than clear. :roll:
for me is Ok, good work, byebye
Thanks :P
That's exactly how openGL handles it. You set a "clear color" (formerly called BG color by SFML) and when you flip the buffers, the clean buffer comes in filled with the clear color.