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

Author Topic: I dont have the Clear() function :(  (Read 2061 times)

0 Members and 1 Guest are viewing this topic.

Paki Programmer

  • Newbie
  • *
  • Posts: 31
    • View Profile
I dont have the Clear() function :(
« on: February 17, 2011, 02:54:37 am »
for some reason i dont have the Clear() function in SFML for VC++ 2010. Does anyone know how to fix this problem??? I cant change the background color without it

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
I dont have the Clear() function :(
« Reply #1 on: February 17, 2011, 07:40:30 am »
Quote
i dont have the Clear() function

What does this mean? The function is obviously declared, unless you have a very old version of SFML (< 1.4 I think).
Laurent Gomila - SFML developer

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
I dont have the Clear() function :(
« Reply #2 on: February 17, 2011, 08:42:38 am »
Or maybe you're using a sf::Window instead of a sf::RenderWindow ? (Juste a guess)
SFML / OS X developer

Paki Programmer

  • Newbie
  • *
  • Posts: 31
    • View Profile
I dont have the Clear() function :(
« Reply #3 on: February 17, 2011, 10:28:14 pm »
yeah you were right lol my mistake. But now i have another question. Do i have to link VC++ to SFML everytime i make a new project???

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
I dont have the Clear() function :(
« Reply #4 on: February 17, 2011, 10:36:40 pm »
Yes. You should read a tutorial on that (modular programming) to understand what you're doing. It will be much easier to work with libs afterwards. ;-)
SFML / OS X developer

Paki Programmer

  • Newbie
  • *
  • Posts: 31
    • View Profile
I dont have the Clear() function :(
« Reply #5 on: February 17, 2011, 10:42:31 pm »
well actually i know how to do it...i was just wondering if i had to do it everytime lol. but that sucks -__-

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
I dont have the Clear() function :(
« Reply #6 on: February 17, 2011, 10:46:04 pm »
But do you know why you have to do that ?

Anyway, from what I know there is no SFML project-template for VC so you have to do it every time. Or you can create a template maybe. I don't know how VC works.
SFML / OS X developer