#include <SFML/Graphics.hpp>
int main() {
sf::RenderWindow wnd(sf::VideoMode(200, 200), "Test");
sf::CircleShape circle(100.0f);
circle.setFillColor(sf::Color::Green);
circle.setPosition(50, 50);
while(wnd.isOpen()) {
sf::Event evt{};
while(wnd.pollEvent(evt)) {
if(evt.type == sf::Event::Closed) {
wnd.close();
}
}
wnd.clear(sf::Color::Black);
wnd.draw(circle);
wnd.display();
}
return 0;
}
macOS 10.14:
(https://i.imgur.com/Ib1bhA1.png)
macOS 10.13:
(https://i.imgur.com/RpZM3om.png)