CCParticleBatchNode* CCParticleBatchNode::create(const char* imageFile, unsigned int capacity/* = kCCParticleDefaultCapacity*/) { CCParticleBatchNode * p = new CCParticleBatchNode(); if( p && p->initWithFile(imageFile, capacity)) { p->autorelease(); return p; } CC_SAFE_DELETE(p); return NULL; }
CCParticleBatchNode* CCParticleBatchNode::batchNodeWithFile(const char* imageFile) { CCParticleBatchNode * p = new CCParticleBatchNode(); if( p && p->initWithFile(imageFile, kCCParticleDefaultCapacity)) { p->autorelease(); return p; } CC_SAFE_DELETE(p); return NULL; }