1
Window / Close() is not a member of Class Window?
« on: August 01, 2008, 08:33:47 am »
Hi there!
Well, I was looking around in the tutorial, created some Threads (System Package) and opened a window. Worked fine. But then on the handling events site, I ran into problems. At the lines:
and
I get the message:
C:\Projects\sfml\sfml_test\main.cpp|23|error: 'class sf::Window' has no member named 'IsOpened'|
(the same to App.Close)
I created the window with this line:
Why?
Well, I was looking around in the tutorial, created some Threads (System Package) and opened a window. Worked fine. But then on the handling events site, I ran into problems. At the lines:
Code: [Select]
while (App.IsOpened())
and
Code: [Select]
App.Close();
I get the message:
C:\Projects\sfml\sfml_test\main.cpp|23|error: 'class sf::Window' has no member named 'IsOpened'|
(the same to App.Close)
I created the window with this line:
Code: [Select]
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Events");
Why?