Answers for "Run SFML gnu"

4

ubuntu install sfml

sudo apt-get install libsfml-dev
Posted by: Guest on June-06-2020
0

sfml default program

int main()
{
    sf::RenderWindow window(sf::VideoMode(800, 600), "My window");

    // run the program as long as the window is open
    while (window.isOpen())
    {
        // check all the window's events that were triggered since the last iteration of the loop
        sf::Event event;
        while (window.pollEvent(event))
        {
            // "close requested" event: we close the window
            if (event.type == sf::Event::Closed)
                window.close();
        }
    }

    return 0;
}
Posted by: Guest on May-03-2020

Browse Popular Code Answers by Language