Package com.aqpproject.visualisation.gdx

Source Code of com.aqpproject.visualisation.gdx.ParticleEffectGDX

/*
* 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;
}
TOP

Related Classes of com.aqpproject.visualisation.gdx.ParticleEffectGDX

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.