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

Method updateQuads

tests/cpp-tests/Source/ParticleTest/ParticleTest.cpp:2082–2088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2080}
2081
2082void Issue870::updateQuads(float dt)
2083{
2084 _index = (_index + 1) % 4;
2085 auto rect = Rect(_index * 32, 0, 32, 32);
2086 auto system = (ParticleSystemQuad*)_emitter;
2087 system->setTextureWithRect(_emitter->getTexture(), rect);
2088}
2089
2090std::string Issue870::title() const
2091{

Callers

nothing calls this directly

Calls 3

setTextureWithRectMethod · 0.80
RectClass · 0.50
getTextureMethod · 0.45

Tested by

no test coverage detected