DefaultEmitPolicy< ParticleType > Class Template Reference

Defines the default emit policy that never emits particles. 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.

Detailed Description

template<class ParticleType = Particle>
class DefaultEmitPolicy< ParticleType >

Defines the default emit policy that never emits particles.

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 DefaultEmitPolicy< 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 DefaultEmitPolicy< 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.

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