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

Method increaseAtlasCapacityTo

core/2d/ParticleBatchNode.cpp:461–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461void ParticleBatchNode::increaseAtlasCapacityTo(ssize_t quantity)
462{
463 AXLOGD("axmol: ParticleBatchNode: resizing TextureAtlas capacity from [{}] to [{}].",
464 (int)_textureAtlas->getCapacity(), (int)quantity);
465
466 if (!_textureAtlas->resizeCapacity(quantity))
467 {
468 // serious problems
469 AXLOGW("axmol: WARNING: Not enough memory to resize the atlas");
470 AXASSERT(false, "XXX: ParticleBatchNode #increaseAtlasCapacity SHALL handle this assert");
471 }
472}
473
474// sets a 0'd quad into the quads array
475void ParticleBatchNode::disableParticle(int particleIndex)

Callers

nothing calls this directly

Calls 2

resizeCapacityMethod · 0.80
getCapacityMethod · 0.45

Tested by

no test coverage detected