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

Method increasePool

OgreMain/src/OgreParticleSystem.cpp:704–722  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

702 }
703 //-----------------------------------------------------------------------
704 void ParticleSystem::increasePool( size_t size )
705 {
706 size_t oldSize = mParticlePool.size();
707
708 // Increase size
709 mParticlePool.reserve( size );
710 mParticlePool.resize( size );
711
712 // Create new particles
713 for( size_t i = oldSize; i < size; i++ )
714 {
715 mParticlePool[i] = OGRE_NEW Particle();
716 }
717
718 if( mIsRendererConfigured )
719 {
720 createVisualParticles( oldSize, size );
721 }
722 }
723 //-----------------------------------------------------------------------
724 ParticleIterator ParticleSystem::_getIterator()
725 {

Callers 1

configureRendererMethod · 0.95

Calls 4

ParticleFunction · 0.50
sizeMethod · 0.45
reserveMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected