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

Method disableParticle

core/2d/ParticleBatchNode.cpp:475–480  ·  view source on GitHub ↗

sets a 0'd quad into the quads array

Source from the content-addressed store, hash-verified

473
474// sets a 0'd quad into the quads array
475void ParticleBatchNode::disableParticle(int particleIndex)
476{
477 V3F_C4B_T2F_Quad* quad = &((_textureAtlas->getQuads())[particleIndex]);
478 quad->br.vertices.x = quad->br.vertices.y = quad->tr.vertices.x = quad->tr.vertices.y = quad->tl.vertices.x =
479 quad->tl.vertices.y = quad->bl.vertices.x = quad->bl.vertices.y = 0.0f;
480}
481
482// ParticleBatchNode - add / remove / reorder helper methods
483

Callers 1

updateMethod · 0.80

Calls 1

getQuadsMethod · 0.80

Tested by

no test coverage detected