mirror of https://github.com/axmolengine/axmol.git
27 lines
961 B
Plaintext
27 lines
961 B
Plaintext
|
|
class CCSpriteFrame : public CCObject
|
|
{
|
|
CCRect getRectInPixels(void);
|
|
void setRectInPixels(CCRect rectInPixels);
|
|
|
|
bool isRotated(void);
|
|
void setRotated(bool bRotated);
|
|
|
|
CCRect getRect(void);
|
|
void setRect(CCRect rect);
|
|
|
|
CCPoint getOffsetInPixels(void);
|
|
void setOffsetInPixels(CCPoint offsetInPixels);
|
|
|
|
CCSize getOriginalSizeInPixels(void);
|
|
void setOriginalSizeInPixels(CCSize sizeInPixels);
|
|
|
|
CCTexture2D* getTexture(void);
|
|
void setTexture(CCTexture2D* pobTexture);
|
|
|
|
static CCSpriteFrame* create(CCTexture2D* pobTexture, CCRect rect);
|
|
static CCSpriteFrame* create(CCTexture2D* pobTexture, CCRect rect, bool rotated, CCPoint offset, CCSize originalSize);
|
|
static CCSpriteFrame* createWithTextureFilename(const char* filename, CCRect rect);
|
|
static CCSpriteFrame* createWithTextureFilename(const char* filename, CCRect rect, bool rotated, CCPoint offset, CCSize originalSize);
|
|
};
|