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

Author Topic: window.clear()?[SOLVED]  (Read 4429 times)

0 Members and 1 Guest are viewing this topic.

Sanction

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
window.clear()?[SOLVED]
« on: August 06, 2015, 03:59:48 pm »
What I'm using: VS2013, SFML2.3

I'm learning the basics off of the website. and for some reason window.clear() method does not exists?
Is this because the tutorial is out of date?

CODE:
(click to show/hide)
« Last Edit: August 11, 2015, 04:20:21 pm by Sanction »
Knowledge comes, but wisdom lingers. It may not be difficult to store up in the mind a vast quantity of facts within a comparatively short time, but the ability to form judgments requires the severe discipline of hard work and the tempering heat of experience and maturity.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: window.clear()?
« Reply #1 on: August 06, 2015, 04:01:21 pm »
You're using an sf::Window, it doesn't have a clear nor draw function, use an sf::RenderWindow instead. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Sanction

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Re: window.clear()?
« Reply #2 on: August 06, 2015, 04:03:03 pm »
Woa.. that was quick! I will give that a try Thankyou! ;D
Knowledge comes, but wisdom lingers. It may not be difficult to store up in the mind a vast quantity of facts within a comparatively short time, but the ability to form judgments requires the severe discipline of hard work and the tempering heat of experience and maturity.

 

anything