Package com.badlogic.gdx.graphics.g3d.particles

Examples of com.badlogic.gdx.graphics.g3d.particles.ParticleEffectLoader.save()


  public void saveEffect (File file) {
    Writer fileWriter = null;
    try {
      ParticleEffectLoader loader = (ParticleEffectLoader)assetManager.getLoader(ParticleEffect.class);
      loader.save(effect, new ParticleEffectSaveParameter(new FileHandle(file.getAbsolutePath()), assetManager, particleSystem.getBatches()));
    } catch (Exception ex) {
      System.out.println("Error saving effect: " + file.getAbsolutePath());
      ex.printStackTrace();
      JOptionPane.showMessageDialog(this, "Error saving effect.");
    } finally {
View Full Code Here

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.