|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.badlogic.gdx.graphics.g3d.Attributes
public class Attributes
Constructor Summary | |
---|---|
Attributes()
|
Method Summary | ||
---|---|---|
void |
clear()
Removes all attributes |
|
int |
compare(Attribute arg0,
Attribute arg1)
Used for sorting attributes |
|
Array<Attribute> |
get(Array<Attribute> out,
long type)
Get multiple attributes at once. |
|
|
get(Class<T> clazz,
long type)
Example usage: ((BlendingAttribute)material.get(BlendingAttribute.ID)).sourceFunction; |
|
Attribute |
get(long type)
Example usage: ((BlendingAttribute)material.get(BlendingAttribute.ID)).sourceFunction; |
|
long |
getMask()
|
|
boolean |
has(long type)
|
|
Iterator<Attribute> |
iterator()
Used for iterating through the attributes |
|
void |
remove(long mask)
Removes the attribute from the material, i.e.: material.remove(BlendingAttribute.ID); Can also be used to remove multiple attributes also, i.e. |
|
boolean |
same(Attributes other)
See same(Attributes, boolean) |
|
boolean |
same(Attributes other,
boolean compareValues)
Check if this collection has the same attributes as the other collection. |
|
void |
set(Attribute... attributes)
Add an array of attributes to this material. |
|
void |
set(Attribute attribute)
Add a attribute to this material. |
|
void |
set(Attribute attribute1,
Attribute attribute2)
Add multiple attributes to this material. |
|
void |
set(Attribute attribute1,
Attribute attribute2,
Attribute attribute3)
Add multiple attributes to this material. |
|
void |
set(Attribute attribute1,
Attribute attribute2,
Attribute attribute3,
Attribute attribute4)
Add multiple attributes to this material. |
|
void |
set(Iterable<Attribute> attributes)
Add an array of attributes to this material. |
|
int |
size()
|
|
void |
sort()
Sort the attributes by their ID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public Attributes()
Method Detail |
---|
public final void sort()
public final long getMask()
public final Attribute get(long type)
public final <T extends Attribute> T get(Class<T> clazz, long type)
public final Array<Attribute> get(Array<Attribute> out, long type)
public final void clear()
public int size()
public final void set(Attribute attribute)
public final void set(Attribute attribute1, Attribute attribute2)
public final void set(Attribute attribute1, Attribute attribute2, Attribute attribute3)
public final void set(Attribute attribute1, Attribute attribute2, Attribute attribute3, Attribute attribute4)
public final void set(Attribute... attributes)
public final void set(Iterable<Attribute> attributes)
public final void remove(long mask)
public final boolean has(long type)
public final boolean same(Attributes other, boolean compareValues)
compareValues
- True to compare attribute values, false to only compare attribute types
public final boolean same(Attributes other)
same(Attributes, boolean)
public final int compare(Attribute arg0, Attribute arg1)
compare
in interface Comparator<Attribute>
public final Iterator<Attribute> iterator()
iterator
in interface Iterable<Attribute>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |