MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / setParticleQuota

Method setParticleQuota

OgreMain/src/OgreParticleSystem.cpp:327–337  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

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 //-----------------------------------------------------------------------

Callers 2

doSetMethod · 0.80
createSystemImplMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected