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