They are no longer attached to groups, groups attach emitters Former-commit-id: 9a586151ac4ce932cda5d6c36c3e40718aef7f2c [formerly 830dd96bb020bec7dc7b652acca43fdef2d01971] [formerly 26cf67777c40ca4a6bcc0643a8dea76d46debd30 [formerly d4d7e62390be2a4d44b5a67c5fbabc11aa080de5]] Former-commit-id: 653b321e01aa182a3dcb0531319cb9a053aadfa8 [formerly c4e742f3aab61f0941729a5739a80a838c6163cd] Former-commit-id: 6572d614b19d85cbc0844745c45c3bc92deef051
29 lines
631 B
C++
29 lines
631 B
C++
// Copyright (C) 2015 Jérôme Leclercq
|
|
// This file is part of the "Nazara Development Kit"
|
|
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
|
|
|
|
#include <NDK/Components/ParticleEmitterComponent.hpp>
|
|
|
|
namespace Ndk
|
|
{
|
|
inline ParticleEmitterComponent::ParticleEmitterComponent() :
|
|
m_isActive(true)
|
|
{
|
|
}
|
|
|
|
inline void Ndk::ParticleEmitterComponent::Enable(bool active)
|
|
{
|
|
m_isActive = active;
|
|
}
|
|
|
|
inline bool ParticleEmitterComponent::IsActive() const
|
|
{
|
|
return m_isActive;
|
|
}
|
|
|
|
inline void Ndk::ParticleEmitterComponent::SetSetupFunc(SetupFunc func)
|
|
{
|
|
m_setupFunc = std::move(func);
|
|
}
|
|
}
|