SFML community forums

Help => Graphics => Topic started by: fixus971 on September 22, 2008, 11:33:37 pm

Title: SetBackgroundColor in SVN version
Post by: fixus971 on September 22, 2008, 11:33:37 pm
Hi, great work but where is SetBackgroundColor in SVN version?
Thanks
Title: SetBackgroundColor in SVN version
Post by: eleinvisible on September 23, 2008, 12:04:50 am
It appears to not be in SVN documentation, do you know what file it would have been in?
Title: SetBackgroundColor in SVN version
Post by: fixus971 on September 23, 2008, 01:48:09 am
sf::RenderWindow Class in 1.3:
http://www.sfml-dev.org/documentation/1.3/classsf_1_1RenderWindow.htm
Quote
void    SetBackgroundColor (const Color &Col)
    Change the background color of the window.
Title: SetBackgroundColor in SVN version
Post by: Laurent on September 23, 2008, 07:54:18 am
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.
Title: SetBackgroundColor in SVN version
Post by: fixus971 on September 23, 2008, 12:02:26 pm
: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
Title: SetBackgroundColor in SVN version
Post by: quasius on September 23, 2008, 04:30:33 pm
Quote from: "fixus971"
: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.