| 88 | */ |
| 89 | |
| 90 | ParticleBatchNode* ParticleBatchNode::create(std::string_view imageFile, int capacity /* = kParticleDefaultCapacity*/) |
| 91 | { |
| 92 | ParticleBatchNode* p = new ParticleBatchNode(); |
| 93 | if (p->initWithFile(imageFile, capacity)) |
| 94 | { |
| 95 | p->autorelease(); |
| 96 | return p; |
| 97 | } |
| 98 | AX_SAFE_DELETE(p); |
| 99 | return nullptr; |
| 100 | } |
| 101 | |
| 102 | /* |
| 103 | * init with Texture2D |
nothing calls this directly
no test coverage detected