public static class MeshBuilder.Primitive extends Object
| 构造器 | 说明 |
|---|---|
Primitive() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getIndexCount() |
Obtains the number of indexes of a primitive.
|
ResourceHandle |
getMaterial() |
Obtains the material resource handle of a primitive.
|
int |
getVertexCount() |
Obtains the number of vertexes of a primitive.
|
boolean |
isColorDataDefined() |
Checks whether vertex color is defined for a primitive.
|
boolean |
isJointDataDefined() |
Checks whether joint data is defined for this primitive.
|
boolean |
isTangentDataDefined() |
Obtains whether tangent data is defined for this primitive.
|
void |
setColorDataDefined(boolean isColorDataDefined) |
Sets whether to define color data for this primitive.
|
void |
setIndexCount(int indexCount) |
Sets the number of indexes for a primitive.
|
void |
setJointDataDefined(boolean isJointDataDefined) |
Sets whether to define joint data for this primitive.
|
void |
setMaterial(ResourceHandle material) |
Sets the material resource handle for a primitive.
|
void |
setTangentDataDefined(boolean isTangentDataDefined) |
Sets whether to define tangent data for this primitive.
|
void |
setVertexCount(int vertexCount) |
Sets the number of vertexes for a primitive.
|
public int getVertexCount()
public void setVertexCount(int vertexCount)
vertexCount - Indicates the number of vertexes of the primitive.public int getIndexCount()
public void setIndexCount(int indexCount)
indexCount - Indicates the number of indexes of the primitive.public ResourceHandle getMaterial()
public void setMaterial(ResourceHandle material)
material - Indicates the material resource handle of the primitive.public boolean isTangentDataDefined()
true if tangent data is defined for this primitive.public void setTangentDataDefined(boolean isTangentDataDefined)
isTangentDataDefined - Indicates whether to define tangent data for this primitive.public boolean isColorDataDefined()
true if vertex color is defined for this primitive.public void setColorDataDefined(boolean isColorDataDefined)
isColorDataDefined - Indicates whether to define color data for this primitive.public boolean isJointDataDefined()
true if joint data is defined for this primitive.public void setJointDataDefined(boolean isJointDataDefined)
isJointDataDefined - Indicates whether to define joint data for this primitive.