Loading...
Searching...
No Matches
ParticleEmitter2.hpp
Go to the documentation of this file.
1// This code is based on Jet framework.
2// Copyright (c) 2018 Doyub Kim
3// CubbyFlow is voxel-based fluid simulation engine for computer games.
4// Copyright (c) 2020 CubbyFlow Team
5// Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
6// AI Part: Dongheon Cho, Minseo Kim
7// We are making my contributions/submissions to this project solely in our
8// personal capacity and are not conveying any rights to any intellectual
9// property of any third parties.
10
11#ifndef CUBBYFLOW_PARTICLE_EMITTER2_HPP
12#define CUBBYFLOW_PARTICLE_EMITTER2_HPP
13
15
16namespace CubbyFlow
17{
92
95} // namespace CubbyFlow
96
97#endif
Definition Matrix.hpp:30
Abstract base class for 2-D particle emitter.
Definition ParticleEmitter2.hpp:22
void Update(double currentTimeInSeconds, double timeIntervalInSeconds)
std::function< void(ParticleEmitter2 *, double, double)> OnBeginUpdateCallback
Callback function type for update calls.
Definition ParticleEmitter2.hpp:31
void SetIsEnabled(bool enabled)
Sets true/false to enable/disable the emitter.
bool GetIsEnabled() const
Returns true if the emitter is enabled.
ParticleEmitter2(const ParticleEmitter2 &)=default
Default copy constructor.
virtual void OnSetTarget(const ParticleSystemData2Ptr &particles)
Called when ParticleEmitter2::SetTarget is executed.
const ParticleSystemData2Ptr & GetTarget() const
Returns the target particle system to emit.
virtual void OnUpdate(double currentTimeInSeconds, double timeIntervalInSeconds)=0
Called when ParticleEmitter2::Update is executed.
void SetTarget(const ParticleSystemData2Ptr &particles)
Sets the target particle system to emit.
ParticleEmitter2(ParticleEmitter2 &&) noexcept=default
Default move constructor.
ParticleEmitter2()=default
Default constructor.
void SetOnBeginUpdateCallback(const OnBeginUpdateCallback &callback)
Sets the callback function to be called when ParticleEmitter2::Update function is invoked.
Definition pybind11Utils.hpp:21
std::shared_ptr< ParticleEmitter2 > ParticleEmitter2Ptr
Shared pointer for the ParticleEmitter2 type.
Definition ParticleEmitter2.hpp:94
Matrix< T, Rows, 1 > Vector
Definition Matrix.hpp:738
std::shared_ptr< ParticleSystemData2 > ParticleSystemData2Ptr
Shared pointer type of ParticleSystemData2.
Definition ParticleSystemData.hpp:281