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

Method createWithTotalParticles

core/2d/ParticleSystem.cpp:286–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286ParticleSystem* ParticleSystem::createWithTotalParticles(int numberOfParticles)
287{
288 ParticleSystem* ret = new ParticleSystem();
289 if (ret->initWithTotalParticles(numberOfParticles))
290 {
291 ret->autorelease();
292 return ret;
293 }
294 AX_SAFE_DELETE(ret);
295 return ret;
296}
297
298// static
299Vector<ParticleSystem*>& ParticleSystem::getAllParticleSystems()

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80

Tested by

no test coverage detected