ContinuousEmitPolicy< ParticleType > Class Template Reference
Defines the an emit policy that continuously emits particles with some flowrate.
More...
#include <Graphics/ParticleSystem.h>
List of all members.
Public Member Functions |
| uint | AmountToEmit (float dt) |
| | Determines the number of particles to emit on each update. NOTE: All EmitPolicies must implement this function.
|
| Point2f | GetEmitPosition () |
| | Gets the positon to emit particles from. NOTE: All EmitPolicies must implement this function. Called once before particles are emitted.
|
|
void | Start () |
| | Starts emitting particles.
|
|
void | Stop () |
| | Stops the policy from emitting particles.
|
| void | SetFlowRate (float rate) |
| | Sets the flow rate of particles.
|
Detailed Description
template<class ParticleType = Particle>
class ContinuousEmitPolicy< ParticleType >
Defines the an emit policy that continuously emits particles with some flowrate.
- Template Parameters:
-
| ParticleType | the type of particle to use in the particle system. The ParticleType is expected to inheret from the Particle class (or at least have duplicate members). |
Member Function Documentation
template<class ParticleType = Particle>
Determines the number of particles to emit on each update. NOTE: All EmitPolicies must implement this function.
- Parameters:
-
- Returns:
- The number of particles to emit.
template<class ParticleType = Particle>
Gets the positon to emit particles from. NOTE: All EmitPolicies must implement this function. Called once before particles are emitted.
- Returns:
- The position to emit particles.
template<class ParticleType = Particle>
Sets the flow rate of particles.
- Parameters:
-
| [in] | rate | the flow rate in particles per second. |
The documentation for this class was generated from the following file: