Public Member Functions | |
ConstantRateCounter () | |
ConstantRateCounter (const ConstantRateCounter ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgParticle, ConstantRateCounter) | |
void | setMinimumNumberOfParticlesToCreate (int minNumToCreate) |
int | getMinimumNumberOfParticlesToCreate () const |
void | setNumberOfParticlesPerSecondToCreate (double numPerSecond) |
double | getNumberOfParticlesPerSecondToCreate () const |
virtual int | numParticlesToCreate (double dt) const |
Return the number of particles to be created in this frame. | |
Protected Member Functions | |
virtual | ~ConstantRateCounter () |
Protected Attributes | |
int | _minimumNumberOfParticlesToCreate |
double | _numberOfParticlesPerSecondToCreate |
double | _carryOver |
|
|
|
|
|
|
|
|
|
|
|
|
|
Return the number of particles to be created in this frame.
Implements osgParticle::Counter. |
|
|
|
|
|
|
|
|
|
|