/** Ensure the batch can contain the passed in amount of particles */ public void ensureCapacity (int capacity) { if (currentCapacity >= capacity) return; sorter.ensureCapacity(capacity); allocParticlesData(capacity); currentCapacity = capacity; }
public void setSorter (ParticleSorter sorter) { this.sorter = sorter; sorter.setCamera(camera); sorter.ensureCapacity(currentCapacity); }
/** Ensure the batch can contain the passed in amount of particles */ public void ensureCapacity (int capacity) { if (currentCapacity >= capacity) return; sorter.ensureCapacity(capacity); allocParticlesData(capacity); currentCapacity = capacity; }
public void setSorter (ParticleSorter sorter) { this.sorter = sorter; sorter.setCamera(camera); sorter.ensureCapacity(currentCapacity); }
/** Ensure the batch can contain the passed in amount of particles */ public void ensureCapacity (int capacity) { if (currentCapacity >= capacity) return; sorter.ensureCapacity(capacity); allocParticlesData(capacity); currentCapacity = capacity; }
public void setSorter (ParticleSorter sorter) { this.sorter = sorter; sorter.setCamera(camera); sorter.ensureCapacity(currentCapacity); }