SFML community forums

Help => General => Topic started by: Zamadatix on April 18, 2011, 12:56:19 am

Title: SFML 2 change I don't know how to fix
Post by: Zamadatix 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'|
Title: SFML 2 change I don't know how to fix
Post by: Wizzard 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.
Title: SFML 2 change I don't know how to fix
Post by: Zamadatix on April 18, 2011, 02:57:29 am
Thank you :)