|
| void | create (EmitterShape::Enum _shape, EmitterDirection::Enum _direction, uint32_t _maxParticles) |
| |
| void | destroy () |
| |
| void | reset () |
| |
| void | update_temporal_buffer (const math::vec3 &position, float dt) |
| |
| float | calculate_smoothed_emitter_speed (float max_speed) const |
| |
| float | calculateParticleSpeed (const Particle &particle, float ttPos) const |
| |
| void | calculateRotatedAABBBounds (const math::quat &rotation, const math::vec3 &half_extents, const math::vec2 &pivot, math::vec3 &out_min, math::vec3 &out_max) const |
| |
| void | updateParticleProperties (EmitterUniforms &uniforms_, Particle &particle, float avgSystemScale, bx::EaseFn easePos, bool hasColorBySpeed, bool hasSizeBySpeed, const math::mat4 &effectiveTransform) |
| |
| void | update (EmitterUniforms *_uniforms, float _dt) |
| |
| void | getEffectiveTransform (const EmitterUniforms &uniforms_, math::vec3 &outPosition, math::vec3 &outScale, math::vec3 &outEmissionShapeScale, math::mat4 &outTransformMatrix) const |
| |
| void | spawn (EmitterUniforms &uniforms_, math::bbox &aabb, float _dt) |
| |
Definition at line 183 of file particle_system.cpp.
◆ calculate_smoothed_emitter_speed()
| float ps::Emitter::calculate_smoothed_emitter_speed |
( |
float | max_speed | ) |
const |
|
inline |
◆ calculateParticleSpeed()
| float ps::Emitter::calculateParticleSpeed |
( |
const Particle & | particle, |
|
|
float | ttPos ) const |
|
inline |
◆ calculateRotatedAABBBounds()
| void ps::Emitter::calculateRotatedAABBBounds |
( |
const math::quat & | rotation, |
|
|
const math::vec3 & | half_extents, |
|
|
const math::vec2 & | pivot, |
|
|
math::vec3 & | out_min, |
|
|
math::vec3 & | out_max ) const |
|
inline |
◆ create()
◆ destroy()
| void ps::Emitter::destroy |
( |
| ) |
|
◆ getEffectiveTransform()
| void ps::Emitter::getEffectiveTransform |
( |
const EmitterUniforms & | uniforms_, |
|
|
math::vec3 & | outPosition, |
|
|
math::vec3 & | outScale, |
|
|
math::vec3 & | outEmissionShapeScale, |
|
|
math::mat4 & | outTransformMatrix ) const |
|
inline |
◆ reset()
| void ps::Emitter::reset |
( |
| ) |
|
|
inline |
◆ spawn()
◆ update()
◆ update_temporal_buffer()
| void ps::Emitter::update_temporal_buffer |
( |
const math::vec3 & | position, |
|
|
float | dt ) |
|
inline |
◆ updateParticleProperties()
| void ps::Emitter::updateParticleProperties |
( |
EmitterUniforms & | uniforms_, |
|
|
Particle & | particle, |
|
|
float | avgSystemScale, |
|
|
bx::EaseFn | easePos, |
|
|
bool | hasColorBySpeed, |
|
|
bool | hasSizeBySpeed, |
|
|
const math::mat4 & | effectiveTransform ) |
|
inline |
◆ aabb_
◆ billboard_right_
| math::vec3 ps::Emitter::billboard_right_ |
◆ billboard_up_
| math::vec3 ps::Emitter::billboard_up_ |
◆ blend_mode_
◆ direction_
◆ dt_
◆ first_update_
| bool ps::Emitter::first_update_ |
◆ loop_
◆ max_particles_
| uint32_t ps::Emitter::max_particles_ |
◆ num_particles_
| uint32_t ps::Emitter::num_particles_ |
◆ particle_scale_3d_
| math::vec3 ps::Emitter::particle_scale_3d_ |
◆ particles_
◆ pivot_
| math::vec2 ps::Emitter::pivot_ |
◆ playing_
| bool ps::Emitter::playing_ |
◆ render_mode_
◆ rng_
| bx::RngMwc ps::Emitter::rng_ |
◆ shape_
◆ start_delay_elapsed_
| float ps::Emitter::start_delay_elapsed_ |
◆ TEMPORAL_BUFFER_SIZE
| size_t ps::Emitter::TEMPORAL_BUFFER_SIZE = 8 |
|
staticconstexpr |
◆ temporal_position_buffer_
| std::vector<math::vec3> ps::Emitter::temporal_position_buffer_ |
◆ temporal_time_buffer_
| std::vector<float> ps::Emitter::temporal_time_buffer_ |
◆ texture_mode_
◆ total_particles_spawned_
| uint32_t ps::Emitter::total_particles_spawned_ |
The documentation for this struct was generated from the following file: