Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2015
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. const Animation * AnimatedSprite::getAnimation() const
  2. {
  3.     sf::IntRect rect = _animation->getFrame(_currentFrame);
  4.  
  5.     float width = static_cast<float>(std::abs(rect.width));
  6.     float height = static_cast<float>(std::abs(rect.height));
  7.  
  8.     return sf::FloatRect(0.f, 0.f, width, height);// ERROR no suitable conversion function from "sf::FloatRect" to "const                     Animation*" exists
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement