1 #ifndef UGDK_GRAPHIC_SPRITESHEET_H_
2 #define UGDK_GRAPHIC_SPRITESHEET_H_
14 #pragma SWIG nowarn=325
44 void AddFrame(
int topleft_x,
int topleft_y,
int width,
int height,
const Vector2D& hotspot,
size_t file = 0);
53 const std::list<SpritesheetFrame>&
frames()
const {
return frames_; }
56 std::vector<PixelSurface*> file_data_;
57 std::list<SpritesheetFrame> frames_;
67 return frame_sizes_.size();
74 void Draw(
int frame_number,
const Vector2D& hotspot)
const;
81 std::vector<Texture*> frames_;
82 std::vector<Vector2D> frame_sizes_;
90 #endif // UGDK_GRAPHIC_SPRITESHEET_H_