the TextureAtlas json definition will now itself contain material mapping info
This commit is contained in:
parent
4b392a4e28
commit
fc4aebc03f
|
@ -1,16 +1,10 @@
|
|||
package ca.blarg.gdx.assets.textureatlas;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class JsonMaterialMapping {
|
||||
public class Material {
|
||||
public String name;
|
||||
public int tile;
|
||||
public float minU;
|
||||
public float maxU;
|
||||
public float minV;
|
||||
public float maxV;
|
||||
}
|
||||
|
||||
public ArrayList<Material> materials;
|
||||
public String name;
|
||||
public int tile;
|
||||
public float minU;
|
||||
public float maxU;
|
||||
public float minV;
|
||||
public float maxV;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ import java.util.ArrayList;
|
|||
|
||||
public class JsonTextureAtlasDefinition {
|
||||
public String texture;
|
||||
public String materialMapping;
|
||||
public ArrayList<JsonMaterialMapping> materialMapping;
|
||||
public ArrayList<JsonTextureAtlasTile> tiles;
|
||||
public ArrayList<JsonTextureAtlasAnimation> animations;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue