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

◆ tryAllocateMeteor()

PerlinParticlePunch::MeteorParticle * fl::PerlinParticlePunch::tryAllocateMeteor ( )
private

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

197 {
198 u16 n = (u16)mMeteorParticles.size();
199 for (u16 i = 0; i < n; ++i) {
200 if (!mMeteorParticles[i].alive) {
202 return &mMeteorParticles[i];
203 }
204 }
205 return nullptr;
206}
fl::vector< MeteorParticle > mMeteorParticles

References mMeteorParticles.

Referenced by spawnMeteor().

+ Here is the caller graph for this function: