I am attempting to follow a video tutorial, and I've run into an strange runtime issue.
I have my project set up, I and am able to compile and run. But I am not able to see the RenderWindow on my screen. All I can see is an empty console window pop up. No compile errors and no linker errors are mentioned in the build log. What am I missing?
I am trying to follow along at 6:14 location in the tutorial below:
In the video at 6:14, you can see he has two windows open: the black console window, and another blue-ish window (which I assume is the RenderWindow). When I build and run, I see the black console window, but the blue window never appears.
Environment:
Windows 7 Professional 64-bit
Code::Blocks + MinGW
SFML 1.6, dynamically linked
I do have an ATI video card - I've heard that ATI doesn't play well with SFML, but I haven't seen any specific references to my issue in regards to ATI.
Here's the code I am trying to run:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 600, 32), "SFML Sample Application");
while(window.IsOpened())
{
sf::Event event;
while(window.GetEvent(event))
{
switch(event.Type)
{
case sf::Event::Closed:
window.Close();
break;
}
}
window.Clear();
window.Display();
}
return 0;
}
Any ideas?