I'm an aspiring coder, and integrating SFML has been a new experience for me. I've managed to wrestle out all the speedbumps through searching and experimenting, but this one is a bit odd. I'm sure it's something simple but have little clue what the culprit is.
I took this code and slapped it in...
#include <SFML/Graphics.hpp>
int main()
{
// Create the main rendering window
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
// Start game loop
while (App.IsOpened())
{
// Process events
sf::Event Event;
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
App.Close();
}
// Clear the screen (fill it with black color)
App.Clear();
// Display window contents on screen
App.Display();
}
return EXIT_SUCCESS;
}
And when I run it, it opens the new window as expected, but then immediately goes white and crashes. But the debug window says it worked normally.
My eyes are presently ?_? I'm using Visual Studio 2008, if that matters.