Axiom.Core.BillboardSet.IncreasePool C# (CSharp) Method

IncreasePool() protected method

Internal method for increasing pool size.
protected IncreasePool ( int size ) : void
size int
return void
		protected virtual void IncreasePool( int size )
		{
			int oldSize = this.billboardPool.Count;

			// expand the capacity a bit
			this.billboardPool.Capacity += size;

			// add fresh Billboard objects to the new slots
			for ( int i = oldSize; i < size; ++i )
			{
				this.billboardPool.Add( new Billboard() );
			}
		}