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

Author Topic: SFML 2 change I don't know how to fix  (Read 2473 times)

0 Members and 1 Guest are viewing this topic.

Zamadatix

  • Newbie
  • *
  • Posts: 27
    • View Profile
SFML 2 change I don't know how to fix
« on: April 18, 2011, 12:56:19 am »
After a winter break I have come back to coding and updated SFML2 to the latest svn to find that some things have changed while I was gone. Can anyone tell me how to fix this error?


Code: [Select]
49 while (Window.IsOpened())
50    {
51        while (Window.GetEvent(Event))
52        {

C:\Users\Daniel\BMP\main.cpp|51|error: 'class sf::RenderWindow' has no member named 'GetEvent'|

Wizzard

  • Full Member
  • ***
  • Posts: 213
    • View Profile
SFML 2 change I don't know how to fix
« Reply #1 on: April 18, 2011, 01:41:18 am »
The GetEvent function has been renamed to PollEvent. This is a newer feature and the documentation on the website hasn't been updated in awhile. Read the include files or generate your own documentation with Doxygen for up-to-date information.

Zamadatix

  • Newbie
  • *
  • Posts: 27
    • View Profile
SFML 2 change I don't know how to fix
« Reply #2 on: April 18, 2011, 02:57:29 am »
Thank you :)

 

anything