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

Examples of com.badlogic.gdx.graphics.g3d.particles.ResourceData.SaveData.load()


  public void load (AssetManager manager, ResourceData data) {
    SaveData saveData = data.getSaveData();
    AssetDescriptor descriptor = saveData.loadAsset();
    if(descriptor!=null){
      Model model = (Model) manager.get(descriptor);
      setMesh(model.meshes.get((Integer)saveData.load("index")), model);
    }
  }

}
View Full Code Here


  }
 
  @Override
  public void load (AssetManager manager, ResourceData resources) {
    SaveData data = resources.getSaveData();
    Array<Array<Integer>>effectsIndices = data.load("indices");
    AssetDescriptor descriptor;
    Iterator<Array<Integer>> iterator = effectsIndices.iterator();
    while((descriptor = data.loadAsset()) != null){
      ParticleEffect effect = (ParticleEffect)manager.get(descriptor);
      if(effect == null)
View Full Code Here

  @Override
  public void load (AssetManager manager, ResourceData resources) {
    SaveData data = resources.getSaveData("billboardBatch");
    if(data != null){
      setTexture((Texture)manager.get(data.loadAsset()));
      Config cfg = (Config)data.load("cfg");
      setUseGpu(cfg.useGPU);
      setAlignMode(cfg.mode);
    }
  }
}
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.