Castor3D 0.16.0
Multiplatform 3D engine
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
castor3d::ParticleEmitter Class Reference

#include <ParticleEmitter.hpp>

Collaboration diagram for castor3d::ParticleEmitter:
Collaboration graph
[legend]

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
 

Member Typedef Documentation

◆ OnEmitConnection

◆ OnEmitFunction

◆ OnEmitSignal

Constructor & Destructor Documentation

◆ ParticleEmitter()

C3D_API castor3d::ParticleEmitter::ParticleEmitter ( castor3d::ParticleDeclaration const & decl)
explicit

◆ ~ParticleEmitter()

virtual C3D_API castor3d::ParticleEmitter::~ParticleEmitter ( )
virtualdefaultnoexcept

Member Function Documentation

◆ emit()

C3D_API castor3d::Particle castor3d::ParticleEmitter::emit ( ParticleValues const & value) const

Emits a particle with given values.

Parameters
[in]valueThe particle values.

Member Data Documentation

◆ m_decl

castor3d::ParticleDeclaration const& castor3d::ParticleEmitter::m_decl
protected

◆ onEmit

OnEmitSignal castor3d::ParticleEmitter::onEmit

The documentation for this class was generated from the following file: