2012-06-27 14:21:29 +08:00
|
|
|
class CCParticleBatchNode : public CCNode, public CCTextureProtocol
|
|
|
|
{
|
|
|
|
public:
|
2012-08-29 17:10:06 +08:00
|
|
|
void addChild(CCNode * child);
|
|
|
|
void addChild(CCNode * child, int zOrder);
|
|
|
|
void addChild(CCNode * child, int zOrder, int tag);
|
2012-06-27 14:21:29 +08:00
|
|
|
|
|
|
|
void insertChild(CCParticleSystem* pSystem, unsigned int index);
|
|
|
|
|
2012-08-29 17:10:06 +08:00
|
|
|
void removeChild(CCNode* child, bool cleanup);
|
|
|
|
void reorderChild(CCNode * child, int zOrder);
|
2012-06-27 14:21:29 +08:00
|
|
|
void removeChildAtIndex(unsigned int index, bool doCleanup);
|
|
|
|
void removeAllChildrenWithCleanup(bool doCleanup);
|
|
|
|
void disableParticle(unsigned int particleIndex);
|
|
|
|
|
2012-08-29 17:10:06 +08:00
|
|
|
CCTexture2D* getTexture(void);
|
|
|
|
void setTexture(CCTexture2D *texture);
|
2013-07-08 11:34:31 +08:00
|
|
|
void setBlendFunc(const BlendFunc &blendFunc);
|
|
|
|
const BlendFunc& getBlendFunc(void);
|
2012-08-29 17:10:06 +08:00
|
|
|
|
|
|
|
static CCParticleBatchNode* create(const char* fileImage, unsigned int capacity = kCCParticleDefaultCapacity);
|
|
|
|
static CCParticleBatchNode* createWithTexture(CCTexture2D *tex, unsigned int capacity = kCCParticleDefaultCapacity);
|
2012-06-27 14:21:29 +08:00
|
|
|
};
|