MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / affect

Method affect

Sources/nCine/Graphics/ParticleAffectors.cpp:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace nCine
6{
7 void ParticleAffector::affect(Particle* particle)
8 {
9 const float normalizedAge = 1.0f - particle->life_ / particle->startingLife;
10 affect(particle, normalizedAge);
11 }
12
13 void ColorAffector::addColorStep(float age, const Colorf& color)
14 {

Callers 1

OnUpdateMethod · 0.80

Calls 8

DEATH_ASSERTFunction · 0.85
setColorMethod · 0.80
setScaleMethod · 0.80
emptyMethod · 0.45
backMethod · 0.45
sizeMethod · 0.45
setRotationMethod · 0.45
moveMethod · 0.45

Tested by

no test coverage detected