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