com.badlogic.gdx.graphics
Class VertexAttributes
java.lang.Object
com.badlogic.gdx.graphics.VertexAttributes
public final class VertexAttributes
- extends java.lang.Object
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.
- Author:
- mzechner
Field Summary |
int |
vertexSize
the size of a single vertex in bytes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
vertexSize
public final int vertexSize
- the size of a single vertex in bytes
VertexAttributes
public VertexAttributes(VertexAttribute... attributes)
- Constructor, sets the vertex attributes in a specific order
size
public int size()
- Returns:
- the number of attributes
get
public VertexAttribute get(int index)
- Parameters:
index
- the index
- Returns:
- the VertexAttribute at the given index
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)