Castor3D 0.16.0
Multiplatform 3D engine
|
#include <ParticleEmitter.hpp>
Public Types | |
using | OnEmitFunction = castor::Function< void( Particle const & particle ) > |
using | OnEmitSignal = castor::SignalT< OnEmitFunction > |
using | OnEmitConnection = OnEmitSignal::connection |
Public Member Functions | |
C3D_API | ParticleEmitter (castor3d::ParticleDeclaration const &decl) |
virtual C3D_API | ~ParticleEmitter () noexcept=default |
C3D_API castor3d::Particle | emit (ParticleValues const &value) const |
Emits a particle with given values. | |
Public Attributes | |
OnEmitSignal | onEmit |
Protected Attributes | |
castor3d::ParticleDeclaration const & | m_decl |
using castor3d::ParticleEmitter::OnEmitFunction = castor::Function< void( Particle const & particle ) > |
|
explicit |
|
virtualdefaultnoexcept |
C3D_API castor3d::Particle castor3d::ParticleEmitter::emit | ( | ParticleValues const & | value | ) | const |
Emits a particle with given values.
[in] | value | The particle values. |
|
protected |
OnEmitSignal castor3d::ParticleEmitter::onEmit |