From 4cb1465dbc0b39417b70c43ebc9cf1f7393779b9 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Fri, 26 Apr 2024 21:15:53 -0400 Subject: [PATCH] And now it's spinning ni the center. I don't know why x=100, y=100 is the center origin of a 100x100 square so more research needed. --- sfmldemo/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sfmldemo/main.cpp b/sfmldemo/main.cpp index a1e06a9..c640c1a 100644 --- a/sfmldemo/main.cpp +++ b/sfmldemo/main.cpp @@ -50,6 +50,7 @@ int main() { ImGui_setup(window); sf::CircleShape shape(100.f, 4); + shape.setOrigin(100.f, 100.f); shape.setFillColor(sf::Color(150, 50, 250)); shape.setOutlineThickness(10.f); shape.setOutlineColor(sf::Color(250, 150, 100));