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>
uint ContinuousEmitPolicy< ParticleType >::AmountToEmit ( float  dt  )  [inline]

Determines the number of particles to emit on each update. NOTE: All EmitPolicies must implement this function.

Parameters:
[in] dt the frame time.
Returns:
The number of particles to emit.
template<class ParticleType = Particle>
Point2f ContinuousEmitPolicy< ParticleType >::GetEmitPosition (  )  [inline]

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>
void ContinuousEmitPolicy< ParticleType >::SetFlowRate ( float  rate  )  [inline]

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:
Generated on Mon Apr 5 19:08:05 2010 for BrickOut |ReDuX| by  doxygen 1.6.3