2 #include "oxygine-include.h" 4 #include "AnimationFrame.h" 18 const Rect& getRect()
const {
return _rc;}
19 void setID(
int id) {_id = id;}
29 DECLARE_SMART(
Texture, spTexture);
32 typedef std::vector<AnimationFrame> frames;
40 void init(
int w,
int h);
43 spTexture getTexture();
44 const Rect& getBounds()
const {
return _bounds;}
60 void init(
int w,
int h,
int skipSize = 3);
65 const Rect& getBounds()
const {
return _bounds; }
68 typedef std::deque<Rect> rects;
79 typedef Closure<spTexture(int w, int h)> createTextureCallback;
83 void init(
int skipSize = 3);
88 const Rect& getBounds()
const {
return _bounds; }
97 createTextureCallback _cb;
99 void place(
const rect& dest,
int w,
int h,
const ImageData& src, spTexture& t,
Rect& srcRect);
101 typedef std::deque<rect> rects;
105 static bool sortRects(
const rect& a,
const rect& b);
Definition: AtlasTool.h:10
Definition: ImageData.h:54
Definition: AtlasTool.h:76
Definition: AnimationFrame.h:28
–oxgl-end–!
Definition: Actor.h:14
Definition: AtlasTool.h:91
Definition: AtlasTool.h:34
Definition: AtlasTool.h:55