-----------------------------------------------------------------------
| 325 | size_t ParticleSystem::getParticleQuota() const { return mPoolSize; } |
| 326 | //----------------------------------------------------------------------- |
| 327 | void ParticleSystem::setParticleQuota( size_t size ) |
| 328 | { |
| 329 | // Never shrink below size() |
| 330 | size_t currSize = mParticlePool.size(); |
| 331 | |
| 332 | if( currSize < size ) |
| 333 | { |
| 334 | // Will allocate particles on demand |
| 335 | mPoolSize = size; |
| 336 | } |
| 337 | } |
| 338 | //----------------------------------------------------------------------- |
| 339 | size_t ParticleSystem::getEmittedEmitterQuota() const { return mEmittedEmitterPoolSize; } |
| 340 | //----------------------------------------------------------------------- |
no test coverage detected