MCPcopy Create free account
hub / github.com/defold/defold / IsEmitterLooping

Function IsEmitterLooping

engine/particle/src/particle.cpp:340–343  ·  view source on GitHub ↗

Emitters are looping when play mode is looping, except for when retiring

Source from the content-addressed store, hash-verified

338
339 // Emitters are looping when play mode is looping, except for when retiring
340 static bool IsEmitterLooping(Emitter* emitter, dmParticleDDF::Emitter* emitter_ddf)
341 {
342 return emitter->m_Retiring == 0 && emitter_ddf->m_Mode == PLAY_MODE_LOOP;
343 }
344
345 static void FastForwardEmitter(Prototype* prototype, Instance* instance, EmitterPrototype* emitter_prototype, Emitter* emitter, dmParticleDDF::Emitter* emitter_ddf, float time)
346 {

Callers 2

UpdateEmitterStateFunction · 0.85
DebugRenderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected