MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / Update

Method Update

src/Nazara/Graphics/ParticleGroup.cpp:381–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379 */
380
381 void ParticleGroup::Update(float elapsedTime)
382 {
383 // Emission
384 for (const EmitterEntry& entry : m_emitters)
385 entry.emitter->Emit(*this, elapsedTime);
386
387 // Update
388 if (m_particleCount > 0)
389 {
390 ///TODO: Update using threads
391 ParticleMapper mapper(m_buffer.data(), m_declaration);
392 ApplyControllers(mapper, m_particleCount, elapsedTime);
393 }
394 }
395
396 /*!
397 * \brief Updates the bounding volume by a matrix

Callers

nothing calls this directly

Calls 1

EmitMethod · 0.45

Tested by

no test coverage detected