public class Vertices extends Object
| 构造器 | 说明 |
|---|---|
Vertices(int vertexCount,
float[] verts,
int vertOffset,
float[] texs,
int texOffset,
int[] colors,
int colorOffset,
short[] indices,
int indexOffset,
int indexCount) |
A constructor used to create a
Vertices instance based on the specified vertex information. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getColorOffset() |
Obtains the offset within the array of vertex colors.
|
int[] |
getColors() |
Obtains an array of vertex colors.
|
int |
getIndexCount() |
Obtains the number of triangle indices.
|
int |
getIndexOffset() |
Obtains the offset within the array of triangle indices.
|
short[] |
getIndices() |
Obtains an array of triangle indices.
|
int |
getTexOffset() |
Obtains the offset within the array of texture coordinates.
|
float[] |
getTexs() |
Obtains an array of texture coordinates.
|
int |
getVertexCount() |
Obtains the number of vertices.
|
int |
getVertOffset() |
Obtains the offset within the array of vertex coordinates.
|
float[] |
getVerts() |
Obtains an array of vertex coordinates.
|
public Vertices(int vertexCount,
float[] verts,
int vertOffset,
float[] texs,
int texOffset,
int[] colors,
int colorOffset,
short[] indices,
int indexOffset,
int indexCount)
Vertices instance based on the specified vertex information.vertexCount - Indicates the number of vertices.verts - Indicates an array of vertex coordinates.vertOffset - Indicates the offset within the array of vertex coordinates.texs - Indicates an array of texture coordinates.texOffset - Indicates the offset within the array of texture coordinates.colors - Indicates an array of vertex colors.colorOffset - Indicates the offset within the array of vertex colors.indices - Indicates an array of triangle indices.indexOffset - Indicates the offset within the array of triangle indices.indexCount - Indicates the number of triangle indices.public int getVertexCount()
public float[] getVerts()
public int getVertOffset()
public float[] getTexs()
public int getTexOffset()
public int[] getColors()
public int getColorOffset()
public short[] getIndices()
public int getIndexOffset()
public int getIndexCount()