public class VertexElementMaterial extends VertexElement implements IIndicedVertexElement
VertexElementMaterial
is used to render different part of the geometry in different materials.Constructor and Description |
---|
VertexElementMaterial()
Initializes a new instance of the
VertexElementMaterial class. |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all elements from the direct and the index arrays.
|
VertexElement |
clone(boolean withDirect,
boolean withIndice)
Deep clone the vertex element
|
List<Integer> |
getIndices()
Gets the indice data
|
void |
setIndices(int[] data)
Load indices
|
clone, getMappingMode, getName, getReferenceMode, getVertexElementType, setMappingMode, setName, setReferenceMode, toString
public VertexElementMaterial()
VertexElementMaterial
class.public List<Integer> getIndices()
getIndices
in interface IIndicedVertexElement
public void setIndices(int[] data)
data
- public void clear()
clear
in class VertexElement
public VertexElement clone(boolean withDirect, boolean withIndice)
VertexElement
withDirect
- Clone the vertex with direct arraywithIndice
- Clone the vertex with index array