ParticleEmitter2.hpp
Go to the documentation of this file.
31 std::function<void(ParticleEmitter2*, double, double)>;
void SetOnBeginUpdateCallback(const OnBeginUpdateCallback &callback)
Sets the callback function to be called when ParticleEmitter2::Update function is invoked...
std::shared_ptr< ParticleEmitter2 > ParticleEmitter2Ptr
Shared pointer for the ParticleEmitter2 type.
Definition: ParticleEmitter2.hpp:94
bool GetIsEnabled() const
Returns true if the emitter is enabled.
void SetTarget(const ParticleSystemData2Ptr &particles)
Sets the target particle system to emit.
void SetIsEnabled(bool enabled)
Sets true/false to enable/disable the emitter.
virtual void OnSetTarget(const ParticleSystemData2Ptr &particles)
Called when ParticleEmitter2::SetTarget is executed.
std::shared_ptr< ParticleSystemData2 > ParticleSystemData2Ptr
Shared pointer type of ParticleSystemData2.
Definition: ParticleSystemData.hpp:281
Definition: pybind11Utils.hpp:20
const ParticleSystemData2Ptr & GetTarget() const
Returns the target particle system to emit.
std::function< void(ParticleEmitter2 *, double, double)> OnBeginUpdateCallback
Callback function type for update calls.
Definition: ParticleEmitter2.hpp:31
void Update(double currentTimeInSeconds, double timeIntervalInSeconds)
virtual void OnUpdate(double currentTimeInSeconds, double timeIntervalInSeconds)=0
Called when ParticleEmitter2::Update is executed.
Abstract base class for 2-D particle emitter.
Definition: ParticleEmitter2.hpp:21