Package com.badlogic.gdx.graphics.g3d
Class Material
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.Attributes
-
- com.badlogic.gdx.graphics.g3d.Material
-
- All Implemented Interfaces:
java.lang.Comparable<Attributes>,java.lang.Iterable<Attribute>,java.util.Comparator<Attribute>
public class Material extends Attributes
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringid-
Fields inherited from class com.badlogic.gdx.graphics.g3d.Attributes
attributes, mask, sorted
-
-
Constructor Summary
Constructors Constructor Description Material()Create an empty materialMaterial(Attribute... attributes)Create a material with the specified attributesMaterial(Material copyFrom)Create a material which is an exact copy of the specified materialMaterial(Array<Attribute> attributes)Create a material with the specified attributesMaterial(java.lang.String id)Create an empty materialMaterial(java.lang.String id, Attribute... attributes)Create a material with the specified attributesMaterial(java.lang.String id, Material copyFrom)Create a material which is an exact copy of the specified materialMaterial(java.lang.String id, Array<Attribute> attributes)Create a material with the specified attributes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Materialcopy()Create a copy of this materialbooleanequals(java.lang.Object other)inthashCode()-
Methods inherited from class com.badlogic.gdx.graphics.g3d.Attributes
attributesHash, clear, compare, compareTo, get, get, get, getMask, has, indexOf, iterator, remove, same, same, set, set, set, set, set, set, size, sort
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
Material
public Material()
Create an empty material
-
Material
public Material(java.lang.String id)
Create an empty material
-
Material
public Material(Attribute... attributes)
Create a material with the specified attributes
-
Material
public Material(java.lang.String id, Attribute... attributes)Create a material with the specified attributes
-
Material
public Material(Array<Attribute> attributes)
Create a material with the specified attributes
-
Material
public Material(java.lang.String id, Array<Attribute> attributes)Create a material with the specified attributes
-
Material
public Material(Material copyFrom)
Create a material which is an exact copy of the specified material
-
Material
public Material(java.lang.String id, Material copyFrom)Create a material which is an exact copy of the specified material
-
-
Method Detail
-
copy
public Material copy()
Create a copy of this material
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAttributes
-
equals
public boolean equals(java.lang.Object other)
- Specified by:
equalsin interfacejava.util.Comparator<Attribute>- Overrides:
equalsin classAttributes
-
-