Search in sources :

Example 6 with SaveData

use of com.badlogic.gdx.graphics.g3d.particles.ResourceData.SaveData in project libgdx by libgdx.

the class MeshSpawnShapeValue method save.

@Override
public void save(AssetManager manager, ResourceData data) {
    if (model != null) {
        SaveData saveData = data.createSaveData();
        saveData.saveAsset(manager.getAssetFileName(model), Model.class);
        saveData.save("index", model.meshes.indexOf(mesh, true));
    }
}
Also used : SaveData(com.badlogic.gdx.graphics.g3d.particles.ResourceData.SaveData)

Example 7 with SaveData

use of com.badlogic.gdx.graphics.g3d.particles.ResourceData.SaveData in project libgdx by libgdx.

the class PointSpriteParticleBatch method save.

@Override
public void save(AssetManager manager, ResourceData resources) {
    SaveData data = resources.createSaveData("pointSpriteBatch");
    data.saveAsset(manager.getAssetFileName(getTexture()), Texture.class);
}
Also used : SaveData(com.badlogic.gdx.graphics.g3d.particles.ResourceData.SaveData)

Example 8 with SaveData

use of com.badlogic.gdx.graphics.g3d.particles.ResourceData.SaveData in project libgdx by libgdx.

the class BillboardParticleBatch method save.

@Override
public void save(AssetManager manager, ResourceData resources) {
    SaveData data = resources.createSaveData("billboardBatch");
    data.save("cfg", new Config(useGPU, mode));
    data.saveAsset(manager.getAssetFileName(texture), Texture.class);
}
Also used : SaveData(com.badlogic.gdx.graphics.g3d.particles.ResourceData.SaveData)

Aggregations

SaveData (com.badlogic.gdx.graphics.g3d.particles.ResourceData.SaveData)8 AssetDescriptor (com.badlogic.gdx.assets.AssetDescriptor)3 Model (com.badlogic.gdx.graphics.g3d.Model)2 ParticleController (com.badlogic.gdx.graphics.g3d.particles.ParticleController)2 ParticleEffect (com.badlogic.gdx.graphics.g3d.particles.ParticleEffect)2 IntArray (com.badlogic.gdx.utils.IntArray)2 Array (com.badlogic.gdx.utils.Array)1