mirror of https://github.com/axmolengine/axmol.git
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
|
|
class CCSpriteBatchNode : public CCNode
|
|
{
|
|
CCTextureAtlas* getTextureAtlas(void);
|
|
void setTextureAtlas(CCTextureAtlas* textureAtlas);
|
|
CCArray* getDescendants(void);
|
|
|
|
void increaseAtlasCapacity();
|
|
void removeChildAtIndex(unsigned int index, bool doCleanup);
|
|
void insertChild(CCSprite *child, unsigned int index);
|
|
void removeSpriteFromAtlas(CCSprite *sprite);
|
|
|
|
unsigned int rebuildIndexInOrder(CCSprite *parent, unsigned int index);
|
|
unsigned int highestAtlasIndexInChild(CCSprite *sprite);
|
|
unsigned int lowestAtlasIndexInChild(CCSprite *sprite);
|
|
unsigned int atlasIndexForChild(CCSprite *sprite, int z);
|
|
|
|
void setTexture(CCTexture2D *texture);
|
|
CCTexture2D* getTexture(void);
|
|
void setBlendFunc(ccBlendFunc blendFunc);
|
|
ccBlendFunc getBlendFunc(void);
|
|
|
|
static CCSpriteBatchNode* batchNodeWithTexture(CCTexture2D *tex);
|
|
static CCSpriteBatchNode* batchNodeWithTexture(CCTexture2D* tex, unsigned int capacity);
|
|
static CCSpriteBatchNode* batchNodeWithFile(const char* fileImage);
|
|
static CCSpriteBatchNode* batchNodeWithFile(const char* fileImage, unsigned int capacity);
|
|
};
|