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));
}
}
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);
}
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);
}
Aggregations