|
| TexturedEmitter (std::shared_ptr< Vkx::Device > device, int n, std::shared_ptr< EmitterVolume > volume, std::shared_ptr< Environment > environment, std::shared_ptr< Appearance > appearance, bool sorted) |
| Constructor. More...
|
|
| TexturedEmitter (std::shared_ptr< Vkx::Device > device, std::vector< TexturedParticle > particles, std::shared_ptr< EmitterVolume > volume, std::shared_ptr< Environment > environment, std::shared_ptr< Appearance > appearance, bool sorted) |
| Constructor. More...
|
|
void | initialize () |
| Initializes the emitter.
|
|
void | uninitialize () |
| Uninitializes the emitter.
|
|
std::vector< TexturedParticle > & | particles () |
|
std::vector< TexturedParticle > const & | particles () const |
|
|
virtual void | update (float dt) override |
|
virtual void | draw () const override |
| Draws all the emitter's particles. More...
|
|
| BasicEmitter (std::shared_ptr< Vkx::Device > device, std::shared_ptr< EmitterVolume > volume, std::shared_ptr< Environment > environment, std::shared_ptr< Appearance > appearance, bool sorted) |
| Constructor. More...
|
|
virtual | ~BasicEmitter ()=default |
| Destructor.
|
|
std::shared_ptr< EmitterVolume > | emitterVolume () const |
| Returns the emitter volume.
|
|
std::shared_ptr< Appearance > | appearance () const |
| Returns the appearance.
|
|
std::shared_ptr< Environment > | environment () const |
| Returns the environment.
|
|
glm::vec3 | currentPosition () const |
| Returns the current position.
|
|
glm::vec3 | currentVelocity () const |
| Returns the current velocity.
|
|
bool | enabled () const |
| Returns true if the emitter is enabled.
|
|
bool | sorted () const |
| Returns true if the particles are sorted.
|
|
bool | enable (bool enable=true) |
| Enables/Disables the emitter. Returns the previous state. More...
|
|
void | update (glm::vec3 const &position, glm::vec3 const &velocity) |
| Sets the emitter's position and velocity. More...
|
|
void | update (float dt, glm::vec3 const &position, glm::vec3 const &velocity) |
| Updates the emitter and its particles. More...
|
|
An Emitter that emits TexturedParticles.