Hello all.
Today I decided to go ahead and familiarize myself with SFML. So I set it up, and started with the "Opening a window" tutorial. It compiled fine (of course), but when I started the executable, all I got was the wait cursor for about 5 seconds, then nothing. I opened the task manager, and the application was apparently running in the background, but did nothing.
Then I compiled another tutorial ("Using render windows"), and it did exactly the same thing.
I'm on Win7 (64-bit), and my compiler is Visual Studio 2010 Express. Could anybody help me out with this, please?
Also, here is the code I used:
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
int main(void)
{
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "Test");
while (App.IsOpened())
{
sf::Event Event;
while (App.GetEvent(Event))
{
if (Event.Type == sf::Event::Closed)
{
App.Close();
}
}
App.Clear();
App.Display();
}
return EXIT_SUCCESS;
}
Thank you in advance.