Exemple #1
0
 /** Disposes the texture for each sprite for each ParticleEmitter. */
 public void dispose() {
   for (int i = 0, n = emitters.size; i < n; i++) {
     ParticleEmitter emitter = emitters.get(i);
     emitter.getSprite().getTexture().dispose();
   }
 }
 public void draw(ParticleEmitter emitter, TextureAtlas.AtlasRegion tex, boolean additive) {
   maybeChangeAdditive(additive);
   emitter.draw(myDrawer.getBatch(emitter.getSprite().getTexture(), tex));
 }