public class VertexElementUV extends VertexElementVector4
VertexElementUV elements, and each one have different TextureMappings.| Constructor and Description |
|---|
VertexElementUV()
Initializes a new instance of the
VertexElementUV class. |
VertexElementUV(TextureMapping textureMapping)
Initializes a new instance of the
VertexElementUV class. |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(java.lang.Iterable<Vector2> data)
Add a set of
Vector2 to VertexElementUV.Data. |
void |
addData2(java.lang.Iterable<Vector3> data)
Add a set of
Vector3 to VertexElementUV.Data. |
VertexElement |
clone(boolean withDirect,
boolean withIndice)
Deep clone the vertex element
|
clear, copyTo, getData, setDataclone, getIndices, getMappingMode, getName, getReferenceMode, getVertexElementType, setIndices, setMappingMode, setName, setReferenceMode, toStringpublic VertexElementUV()
VertexElementUV class.
The default texture mapping type is TextureMapping.DIFFUSEpublic VertexElementUV(TextureMapping textureMapping)
VertexElementUV class.textureMapping - The texture mapping type.public void addData(java.lang.Iterable<Vector2> data)
Vector2 to VertexElementUV.Data.
This is a short-cut, this method will convert the Vector2 to Vector4 with z to 0 and w to 0.data - public VertexElement clone(boolean withDirect, boolean withIndice)
VertexElementwithDirect - Clone the vertex with direct arraywithIndice - Clone the vertex with index array