/*
* AQP Project
* http://http://code.google.com/p/aqp-project/
* Alexandre Gomez - Clément Troesch - Fabrice Latterner
*/
package com.aqpproject.visualisation.gdx;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.g2d.ParticleEffect;
import java.io.File;
/**
*
* @author Clément
*/
public class ParticleEffectGDX {
public ParticleEffectGDX(String effectFile, String imageDir) {
m_particleEffect = new ParticleEffect();
FileHandle ef = Gdx.files.absolute(new File(effectFile).getAbsolutePath());
FileHandle id = Gdx.files.absolute(new File(imageDir).getAbsolutePath());
m_particleEffect.load(ef, id);
}
public ParticleEffect createEffect() {
return new ParticleEffect(m_particleEffect);
}
private ParticleEffect m_particleEffect;
}