0 Members and 2 Guests are viewing this topic.
Nevermind, I guess I must set manually with: sprite::SetSubRect()
spr.SetImage(Image());spr.SetImage(theImage);
Must I manually change the dimensions to match the new image, or is there a way for automation?
void AdaptImage(sf::Sprite& Sprite, const sf::Image& NewImage){ Sprite.SetImage(NewImage); Sprite.SetSubRect(sf::IntRect(0, 0, NewImage.GetWidth(), NewImage.GetHeight()));}