MCPcopy Create free account
hub / github.com/axmolengine/axmol / create

Method create

core/2d/ParticleBatchNode.cpp:90–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 */
89
90ParticleBatchNode* 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

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initWithFileMethod · 0.45

Tested by

no test coverage detected