14#ifndef OSGPARTICLE_CONSTANTRATECOUNTER
15#define OSGPARTICLE_CONSTANTRATECOUNTER 1
T maximum(T lhs, T rhs)
return the maximum of two values, equivalent to std::max.
Definition Math:85
The osgParticle library is a NodeKit that extends the core scene graph to support particle effects.
Definition AccelOperator:27
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
double _numberOfParticlesPerSecondToCreate
Definition ConstantRateCounter:79
virtual ~ConstantRateCounter()
Definition ConstantRateCounter:76
double _carryOver
Definition ConstantRateCounter:80
META_Object(osgParticle, ConstantRateCounter)
void setNumberOfParticlesPerSecondToCreate(double numPerSecond)
Definition ConstantRateCounter:49
virtual int getEstimatedMaxNumOfParticles(double lifeTime) const
get the esimated maximum number of particles that would be generated duration the lifetime of a parti...
Definition ConstantRateCounter:67
int _minimumNumberOfParticlesToCreate
Definition ConstantRateCounter:78
virtual int numParticlesToCreate(double dt) const
Return the number of particles to be created in this frame.
Definition ConstantRateCounter:53
int getMinimumNumberOfParticlesToCreate() const
Definition ConstantRateCounter:47
double getNumberOfParticlesPerSecondToCreate() const
Definition ConstantRateCounter:50
void setMinimumNumberOfParticlesToCreate(int minNumToCreate)
Definition ConstantRateCounter:46
ConstantRateCounter()
Definition ConstantRateCounter:27
ConstantRateCounter(const ConstantRateCounter ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Definition ConstantRateCounter:35
Counter()
Definition Counter:46