cant close my window

SFML ...how come i cant close the window?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <SFML/Graphics.hpp>
using namespace sf;

int main()
{
    RenderWindow screen(VideoMode(800, 600, 64), "New Window");
    //screen.Create(sf::VideoMode(800, 600, 32), "SFML Window", sf::Style::Fullscreen);  // will create full screen

    bool running = true;
    while(running)
    {
        screen.Clear();
        screen.Display();
    }

    return EXIT_SUCCESS;
}

Topic archived. No new replies allowed.