SFML community forums

Help => Window => Topic started by: MrUnlucky on June 24, 2012, 04:48:33 am

Title: How do I create a window?
Post by: MrUnlucky on June 24, 2012, 04:48:33 am
I'm off to a bit of a bumpy start here.  ;D The application compiles and runs fine, but no window is displayed (except for the console). I'm following the "Opening a window" tutorial on this site. My OS is Windows Vista 32bit.

#include <SFML/Window.hpp>

int main()
{
    // Create the main window
    sf::Window app(sf::VideoMode(800, 600, 32), "SFML Window");

    // Start main loop
    bool running = true;
    while (running)
        app.Display();
 

    return EXIT_SUCCESS;
}
 

Is there something wrong with this code? It's the exact same code from the tutorial.
Title: Re: How do I create a window?
Post by: MrUnlucky on June 24, 2012, 04:51:15 am
Oh crap, I'm an idiot! I went back to look at my previous posts from a year ago that I had forgotten about and I asked the exact same thing! It appears there's a bug with ATI, but SFML 2 works fine, so I'll just do that. Sorry about that.  :-[