SpriteData.hpp 460 B

123456789101112131415161718192021222324252627
  1. //
  2. // SpriteData.hpp
  3. // Test
  4. //
  5. // Created by 高慕白 on 2024/12/3.
  6. //
  7. #ifndef SpriteData_hpp
  8. #define SpriteData_hpp
  9. #include <stdio.h>
  10. #include <string>
  11. using std::string;
  12. struct SpriteData {
  13. SpriteData():_x(0),_y(0),_scaleX(0),_scaleY(0),_rotate(0),_csx(0),_csy(0){}
  14. int _x,_y;
  15. string _name;
  16. int _typeIndex ;
  17. float _scaleX,_scaleY ;
  18. float _rotate;
  19. float _csx,_csy;//contour scale x,y
  20. };
  21. #endif /* SpriteData_hpp */