public final class VertexFormat
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private static int |
NORMAL_ELEMENT_SIZE |
private int |
normalIndexOffset |
private static int |
POINT_ELEMENT_SIZE |
static VertexFormat |
POINT_NORMAL_TEXCOORD
Specifies the format of a vertex that consists of a point, normal and texture coordinates.
|
static VertexFormat |
POINT_TEXCOORD
Specifies the format of a vertex that consists of a point and texture coordinates.
|
private int |
pointIndexOffset |
private static int |
TEXCOORD_ELEMENT_SIZE |
private int |
texCoordIndexOffset |
private int |
vertexIndexSize |
Modifier | Constructor and Description |
---|---|
private |
VertexFormat(java.lang.String name,
int vertexIndexSize,
int pointIndexOffset,
int normalIndexOffset,
int texCoordIndexOffset) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
getNormalElementSize() |
int |
getNormalIndexOffset()
Returns the index offset in the face array of the normal component within
a vertex.
|
(package private) int |
getPointElementSize() |
int |
getPointIndexOffset()
Returns the index offset in the face array of the point component within
a vertex.
|
(package private) int |
getTexCoordElementSize() |
int |
getTexCoordIndexOffset()
Returns the index offset in the face array of the texture coordinates
component within a vertex.
|
int |
getVertexIndexSize()
Returns the number of component indices that represents a vertex.
|
java.lang.String |
toString() |
public static final VertexFormat POINT_TEXCOORD
public static final VertexFormat POINT_NORMAL_TEXCOORD
private static final int POINT_ELEMENT_SIZE
private static final int NORMAL_ELEMENT_SIZE
private static final int TEXCOORD_ELEMENT_SIZE
private final java.lang.String name
private final int vertexIndexSize
private final int pointIndexOffset
private final int normalIndexOffset
private final int texCoordIndexOffset
private VertexFormat(java.lang.String name, int vertexIndexSize, int pointIndexOffset, int normalIndexOffset, int texCoordIndexOffset)
int getPointElementSize()
int getNormalElementSize()
int getTexCoordElementSize()
public int getVertexIndexSize()
public int getPointIndexOffset()
public int getNormalIndexOffset()
public int getTexCoordIndexOffset()
public java.lang.String toString()
toString
in class java.lang.Object