Hello,
I have just started with SFML, and I am having trouble rendering a window. My code:
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
int main()
{
sf::RenderWindow Game(sf::VideoMode(800, 600, 32), "SFML Blank Window");
sf::Event Event;
while(Game.IsOpened())
{
while(Game.GetEvent(Event))
{
if(Event.Type == sf::Event::Closed)
Game.Close();
}
Game.Clear();
Game.Display();
}
return EXIT_SUCCESS;
}
It crashes on load. I am running Win7 64-bit, MSVC++ 2010, SFML 1.6 pre-compiled.
TIA