Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include<SFML/Graphics.hpp>
- using namespace sf;
- class Animation
- {
- public:
- Animation(Texture*texture,Vector2u imageCount, float switchTime);
- ~Animation();
- void Update(int row,float deltaTime);
- IntRect uvRect;
- private:
- Vector2u imageCount;
- Vector2u currentImage;
- float totalTime;
- float switchTime;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement