Hello !
I'm coming here because a very simple code is not working.
I simply print a graphic window, filled with red. At each display, it switchs black and red ...
The code :
sf::RenderWindow Win(sf::VideoMode::GetFullscreenModes()[0], "SFML Test");
Win.SetFramerateLimit(10);
Win.Clear(sf::Color::Red);
while (!Win.GetInput().IsKeyDown(sf::Key::Escape)) {
Win.Display();
}
Moreover, I'm not able to quit the main loop with the escape key, using this code.
What should I do ?
(I downloaded SFML2 snapshot yesterday - or the day before - and built it using CMake, and I use Visual Studio 9 2008 express edition.)
Thanks in advance,
Equinoxe