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

Author Topic: Clear the Input  (Read 9916 times)

0 Members and 1 Guest are viewing this topic.

Finn

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
Clear the Input
« Reply #15 on: August 13, 2010, 06:57:33 pm »
Ok....I installed SFMl 2!
But...is there something wrong with the sf::String class? With 1.6 my project compiled without any errors...but now I get various errors on using the sf:String class.. :(
like
Code: [Select]

error: ‘class sf::String’ has no member named ‘SetFont’


What the... :-o

Dig

  • Newbie
  • *
  • Posts: 31
    • View Profile
Clear the Input
« Reply #16 on: August 13, 2010, 10:10:50 pm »
sf::String is now sf::Text I believe (which is a much better name).

Finn

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
Clear the Input
« Reply #17 on: August 14, 2010, 04:18:59 pm »
Code: [Select]

engine.cpp:85: error: ‘class sf::Text’ has no member named ‘SetText’


Just the same

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Clear the Input
« Reply #18 on: August 14, 2010, 04:35:26 pm »
sf::String::SetText -> sf::Text::SetString ;)
Laurent Gomila - SFML developer

Finn

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
Clear the Input
« Reply #19 on: August 14, 2010, 05:03:51 pm »
Omg xD Why??? :D

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Clear the Input
« Reply #20 on: August 14, 2010, 05:06:17 pm »
I think they are better names, aren't they?
Laurent Gomila - SFML developer

Finn

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
Clear the Input
« Reply #21 on: August 14, 2010, 05:09:46 pm »
kk....but other errors left here!
Code: [Select]

error: ‘class sf::FloatRect’ has no member named ‘Right’
error: ‘class sf::FloatRect’ has no member named ‘Bottom’



And many issues with the sf::IntRect class...like:
Code: [Select]

‘class sf::IntRect’ has no member named ‘Offset’

Also a renamed class?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Clear the Input
« Reply #22 on: August 14, 2010, 05:25:03 pm »
A huge number of things have changed... that's why it's SFML 2.0 and not 1.7 ;)

You'd better have a look at the documentation:
http://www.sfml-dev.org/documentation/2.0/
Laurent Gomila - SFML developer

 

anything