| Package | org.flintparticles.common.particles |
| Interface | public interface ParticleFactory |
| Implementors | ParticleCreator2D, ParticleCreator3D |
See also
| Method | Defined By | ||
|---|---|---|---|
clearAllParticles():void
Clear all cached particles from the factory
| ParticleFactory | ||
To obtain a new Particle object. | ParticleFactory | ||
disposeParticle(particle:Particle):void
Indicates a particle is no longer required. | ParticleFactory | ||
| clearAllParticles | () | method |
public function clearAllParticles():voidClear all cached particles from the factory
| createParticle | () | method |
public function createParticle():ParticleTo obtain a new Particle object. If using a pool of particles the particle factory will usually return a particle from the pool and only creates a new particle if the pool is empty.
ReturnsParticle — a Particle object.
|
| disposeParticle | () | method |
public function disposeParticle(particle:Particle):voidIndicates a particle is no longer required. If using a pool of particles the particle factory will return the particle to the pool for reuse later.
Parameters
particle:Particle — The particle to return for reuse.
|