c 2b 2b render window

Solutions on MaxInterview for c 2b 2b render window by the best coders in the world

showing results for - "c 2b 2b render window"
Paolo
06 Jan 2018
1int main()
2{
3    // Create the main rendering window
4    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
5    
6    // Start game loop
7    while (App.IsOpened())
8    {
9        // Process events
10        sf::Event Event;
11        while (App.GetEvent(Event))
12        {
13            // Close window : exit
14            if (Event.Type == sf::Event::Closed)
15                App.Close();
16        }
17
18        // Clear the screen (fill it with black color)
19        App.Clear();
20
21        // Display window contents on screen
22        App.Display();
23    }
24
25    return EXIT_SUCCESS;
26}
27