Advertisement
Guest User

Untitled

a guest
May 30th, 2021
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #pragma once
  2. #include<SFML/Graphics.hpp>
  3. using namespace sf;
  4. class Animation
  5. {
  6. public:
  7. Animation(Texture*texture,Vector2u imageCount, float switchTime);
  8. ~Animation();
  9. void Update(int row,float deltaTime);
  10. IntRect uvRect;
  11. private:
  12. Vector2u imageCount;
  13. Vector2u currentImage;
  14. float totalTime;
  15. float switchTime;
  16. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement