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

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


  @Override
  public void load (AssetManager manager, ResourceData resources) {
    SaveData data = resources.getSaveData("pointSpriteBatch");
    if(data != null)
      setTexture((Texture)manager.get(data.loadAsset()));
  }
}
View Full Code Here


  }
 
  @Override
  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

  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)
        throw new RuntimeException("Template is null");
      Array<ParticleController> effectControllers = effect.getControllers();
      Array<Integer> effectIndices = iterator.next();
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

 
  @Override
  public void load (AssetManager manager, ResourceData resources) {
    SaveData data = resources.getSaveData();
    AssetDescriptor descriptor;
    while((descriptor = data.loadAsset()) != null){
      Model model = (Model)manager.get(descriptor);
      if(model == null)
        throw new RuntimeException("Model is null");
      models.add(model);
    }
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.