Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Animation * AnimatedSprite::getAnimation() const
- {
- sf::IntRect rect = _animation->getFrame(_currentFrame);
- float width = static_cast<float>(std::abs(rect.width));
- float height = static_cast<float>(std::abs(rect.height));
- return sf::FloatRect(0.f, 0.f, width, height);// ERROR no suitable conversion function from "sf::FloatRect" to "const Animation*" exists
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement