CubbyFlow::ParticleEmitterSet2 Class Referencefinal
2-D particle-based emitter set. More...
#include <Core/Emitter/ParticleEmitterSet2.h>
Inheritance diagram for CubbyFlow::ParticleEmitterSet2:
Classes | |
class | Builder |
Front-end to create ParticleEmitterSet2 objects step by step. More... | |
Public Member Functions | |
ParticleEmitterSet2 () | |
Constructs an emitter. More... | |
ParticleEmitterSet2 (const std::vector< ParticleEmitter2Ptr > &emitters) | |
Constructs an emitter with sub-emitters. More... | |
virtual | ~ParticleEmitterSet2 () |
Destructor. More... | |
void | AddEmitter (const ParticleEmitter2Ptr &emitter) |
Adds sub-emitter. More... | |
Public Member Functions inherited from CubbyFlow::ParticleEmitter2 | |
ParticleEmitter2 () | |
Default constructor. More... | |
virtual | ~ParticleEmitter2 () |
Destructor. More... | |
void | Update (double currentTimeInSeconds, double timeIntervalInSeconds) |
const ParticleSystemData2Ptr & | GetTarget () const |
Returns the target particle system to emit. More... | |
void | SetTarget (const ParticleSystemData2Ptr &particles) |
Sets the target particle system to emit. More... | |
void | SetOnBeginUpdateCallback (const OnBeginUpdateCallback &callback) |
Sets the callback function to be called when ParticleEmitter2::Update function is invoked. More... | |
Static Public Member Functions | |
static Builder | GetBuilder () |
Returns builder fox ParticleEmitterSet2. More... | |
Additional Inherited Members | |
Public Types inherited from CubbyFlow::ParticleEmitter2 | |
using | OnBeginUpdateCallback = std::function< void(ParticleEmitter2 *, double, double)> |
Callback function type for update calls. More... | |
Detailed Description
2-D particle-based emitter set.
Constructor & Destructor Documentation
◆ ParticleEmitterSet2() [1/2]
CubbyFlow::ParticleEmitterSet2::ParticleEmitterSet2 | ( | ) |
Constructs an emitter.
◆ ParticleEmitterSet2() [2/2]
|
explicit |
Constructs an emitter with sub-emitters.
◆ ~ParticleEmitterSet2()
|
virtual |
Destructor.
Member Function Documentation
◆ AddEmitter()
void CubbyFlow::ParticleEmitterSet2::AddEmitter | ( | const ParticleEmitter2Ptr & | emitter | ) |
Adds sub-emitter.
◆ GetBuilder()
|
static |
Returns builder fox ParticleEmitterSet2.
The documentation for this class was generated from the following file:
- Core/Emitter/ParticleEmitterSet2.h