|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.badlogic.gdx.graphics.VertexAttributes
public final class VertexAttributes
Instances of this class specify the vertex attributes of a mesh. VertexAttributes are used by Mesh
instances to define
its vertex structure. Vertex attributes have an order. The order is specified by the order they are added to this class.
Nested Class Summary | |
---|---|
static class |
VertexAttributes.Usage
The usage of a vertex attribute. |
Field Summary | |
---|---|
int |
vertexSize
the size of a single vertex in bytes |
Constructor Summary | |
---|---|
VertexAttributes(VertexAttribute... attributes)
Constructor, sets the vertex attributes in a specific order |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
VertexAttribute |
findByUsage(int usage)
Returns the first VertexAttribute for the given usage. |
VertexAttribute |
get(int index)
|
long |
getMask()
Calculates a mask based on the contained VertexAttribute instances. |
int |
getOffset(int usage)
Returns the offset for the first VertexAttribute with the specified usage. |
int |
size()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int vertexSize
Constructor Detail |
---|
public VertexAttributes(VertexAttribute... attributes)
Method Detail |
---|
public int getOffset(int usage)
usage
- The usage of the VertexAttribute.public VertexAttribute findByUsage(int usage)
usage
- The usage of the VertexAttribute to find.public int size()
public VertexAttribute get(int index)
index
- the index
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public long getMask()
VertexAttribute
instances. The mask
is a bit-wise or of each attributes VertexAttribute.usage
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |