0 Members and 2 Guests 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.