Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How do I create a window?  (Read 2202 times)

0 Members and 1 Guest are viewing this topic.

MrUnlucky

  • Newbie
  • *
  • Posts: 10
    • View Profile
How do I create a window?
« 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.

MrUnlucky

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: How do I create a window?
« Reply #1 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.  :-[

 

anything