FastLED 3.9.15
Loading...
Searching...
No Matches

◆ tryAllocateAmbient()

PerlinParticlePunch::AmbientParticle * fl::PerlinParticlePunch::tryAllocateAmbient ( )
private

Definition at line 185 of file perlin_particle_punch.cpp.hpp.

185 {
186 u16 n = (u16)mAmbientParticles.size();
187 for (u16 i = 0; i < n; ++i) {
188 if (!mAmbientParticles[i].alive) {
190 return &mAmbientParticles[i];
191 }
192 }
193 return nullptr;
194}
fl::vector< AmbientParticle > mAmbientParticles

References mAmbientParticles.

Referenced by spawnAmbient().

+ Here is the caller graph for this function: