15#ifndef OSGPARTICLE_RANDOMRATE_COUNTER
16#define OSGPARTICLE_RANDOMRATE_COUNTER 1
60 _np += numNewParticles;
63 int n =
static_cast<int>(
_np);
T minimum(T lhs, T rhs)
return the minimum of two values, equivalent to std::min.
Definition Math:78
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
virtual ~RandomRateCounter()
Definition RandomRateCounter:37
float _np
Definition RandomRateCounter:39
int numParticlesToCreate(double dt) const
Return the number of particles to be created in this frame.
Definition RandomRateCounter:54
RandomRateCounter()
Definition RandomRateCounter:44
META_Object(osgParticle, RandomRateCounter)
VariableRateCounter()
Definition VariableRateCounter:51
const rangef & getRateRange() const
Definition VariableRateCounter:61