SFML community forums
Help => Graphics => Topic started by: out4blood on November 11, 2009, 07:03:17 am
-
I am doing some rotating on sprites, and I see that the end result is a rotation of the image around its top left corner. Is there any (easy) way to rotate this image around its center instead?
-
sprite.SetCenter(sprite.GetSize() / 2.f);