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

Method createWithTotalParticles

core/2d/ParticleExamples.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76ParticleFire* ParticleFire::createWithTotalParticles(int numberOfParticles)
77{
78 ParticleFire* ret = new ParticleFire();
79 if (ret->initWithTotalParticles(numberOfParticles))
80 {
81 ret->autorelease();
82 }
83 else
84 {
85 AX_SAFE_DELETE(ret);
86 }
87 return ret;
88}
89
90bool ParticleFire::initWithTotalParticles(int numberOfParticles)
91{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80

Tested by

no test coverage detected