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

Method create

core/2d/ParticleSystemQuad.cpp:77–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75// implementation ParticleSystemQuad
76
77ParticleSystemQuad* ParticleSystemQuad::create(std::string_view filename)
78{
79 ParticleSystemQuad* ret = new ParticleSystemQuad();
80 if (ret->initWithFile(filename))
81 {
82 ret->autorelease();
83 return ret;
84 }
85 AX_SAFE_DELETE(ret);
86 return ret;
87}
88
89ParticleSystemQuad* ParticleSystemQuad::createWithTotalParticles(int numberOfParticles)
90{

Callers

nothing calls this directly

Calls 4

autoreleaseMethod · 0.80
initWithFileMethod · 0.45
initWithDictionaryMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected