0 Members and 1 Guest are viewing this topic.
sf::RenderWindow window(sf::VideoMode(1024, 768), ""); while (window.isOpen()) { sf::Event event; while (window.pollEvent(event)) { if (event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Escape) window.close(); } window.clear(); window.display(); }
I have no idea about how the OS X part of SFML works, sorry.