public static class MeshBuilder.VertexData extends Object
| 构造器 | 说明 |
|---|---|
VertexData() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
FloatBuffer |
getColors() |
Get vertex color data, in vec4 format (r, g, b, a), this buffer is optional.
|
FloatBuffer |
getNormals() |
Obtains the normal data, in vec3 format (x, y, z).
|
FloatBuffer |
getPositions() |
Obtains the position data, in vec3 format (x, y, z).
|
FloatBuffer |
getTangents() |
Get tangent data, in vec4 format (x, y, z, w), this buffer is optional.
|
FloatBuffer |
getTexCoords() |
Obtains the texture coordinate data, in vec2 format (u, v).
|
void |
setColors(FloatBuffer colors) |
Set vertex color data, in vec4 format (r, g, b, a), this buffer is optional.
|
void |
setNormals(FloatBuffer normals) |
Sets the normal data, in vec3 format (x, y, z).
|
void |
setPositions(FloatBuffer positions) |
Sets the position data, in vec3 format (x, y, z).
|
void |
setTangents(FloatBuffer tangents) |
Set tangent data, in vec4 format (x, y, z, w), this buffer is optional.
|
void |
setTexCoords(FloatBuffer texCoords) |
Sets the texture coordinate data, in vec2 format (u, v).
|
public FloatBuffer getPositions()
public void setPositions(FloatBuffer positions)
positions - Indicates the position data, as a direct buffer with the native byte order.public FloatBuffer getNormals()
public void setNormals(FloatBuffer normals)
normals - Indicates the normal data, as a direct buffer with the native byte order.public FloatBuffer getTexCoords()
public void setTexCoords(FloatBuffer texCoords)
texCoords - Indicates the texture coordinate data, as a direct buffer with the native byte order.public FloatBuffer getTangents()
public void setTangents(FloatBuffer tangents)
tangents - tangent data.public FloatBuffer getColors()
public void setColors(FloatBuffer colors)
colors - vertex color data.