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

Author Topic: SetBackgroundColor in SVN version  (Read 3790 times)

0 Members and 2 Guests are viewing this topic.

fixus971

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • http://www.fixweb.it
SetBackgroundColor in SVN version
« on: September 22, 2008, 11:33:37 pm »
Hi, great work but where is SetBackgroundColor in SVN version?
Thanks
^_^=>Il calcolatore è straordinariamente veloce, accurato e stupido. Gli uomini sono incredibilmente lenti, imprecisi e creativi. L'insieme dei due costituisce una forza incalcolabile. (Albert Einstein)

eleinvisible

  • Newbie
  • *
  • Posts: 47
    • View Profile
SetBackgroundColor in SVN version
« Reply #1 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?

fixus971

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • http://www.fixweb.it
SetBackgroundColor in SVN version
« Reply #2 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.
^_^=>Il calcolatore è straordinariamente veloce, accurato e stupido. Gli uomini sono incredibilmente lenti, imprecisi e creativi. L'insieme dei due costituisce una forza incalcolabile. (Albert Einstein)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SetBackgroundColor in SVN version
« Reply #3 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.
Laurent Gomila - SFML developer

fixus971

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • http://www.fixweb.it
SetBackgroundColor in SVN version
« Reply #4 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
^_^=>Il calcolatore è straordinariamente veloce, accurato e stupido. Gli uomini sono incredibilmente lenti, imprecisi e creativi. L'insieme dei due costituisce una forza incalcolabile. (Albert Einstein)

quasius

  • Full Member
  • ***
  • Posts: 166
    • View Profile
SetBackgroundColor in SVN version
« Reply #5 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.