Animation.hpp 263 B

12345678910111213141516171819
  1. #pragma once
  2. #include <SFML/Graphics.hpp>
  3. using namespace sf;
  4. struct Animation {
  5. Animation() {
  6. // Turns out to be constant.
  7. count = 166;
  8. }
  9. Texture tex;
  10. Texture tex1;
  11. Texture tex2;
  12. unsigned count;
  13. unsigned duration;
  14. std::string name;
  15. bool loop;
  16. };