Top Description Fields Constructors Methods
javafx.scene.shape

public final Class VertexFormat

extends Object
Class Inheritance

Defines the format of the vertices in a mesh. A vertex consists of an array of points, normals (optional), and texture coordinates.
Since
JavaFX 8u40

Field Summary

Modifier and TypeField and Description
private final String
private static final int
private final int
private static final int
public static final VertexFormat
POINT_NORMAL_TEXCOORD

Specifies the format of a vertex that consists of a point, normal and texture coordinates.

public static final VertexFormat
POINT_TEXCOORD

Specifies the format of a vertex that consists of a point and texture coordinates.

private final int
private static final int
private final int
private final int

Constructor Summary

AccessConstructor and Description
private
VertexFormat(String name, int vertexIndexSize, int pointIndexOffset, int normalIndexOffset, int texCoordIndexOffset)

Method Summary

Modifier and TypeMethod and Description
pack-priv int
public int

Returns:

the offset to the normal component.
getNormalIndexOffset
()

Returns the index offset in the face array of the normal component within a vertex.

pack-priv int
public int

Returns:

the offset to the point component.
getPointIndexOffset
()

Returns the index offset in the face array of the point component within a vertex.

pack-priv int
public int

Returns:

the offset to the texture coordinates component.
getTexCoordIndexOffset
()

Returns the index offset in the face array of the texture coordinates component within a vertex.

public int

Returns:

the number of component indices
getVertexIndexSize
()

Returns the number of component indices that represents a vertex.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

nameback to summary
private final String name
NORMAL_ELEMENT_SIZEback to summary
private static final int NORMAL_ELEMENT_SIZE
normalIndexOffsetback to summary
private final int normalIndexOffset
POINT_ELEMENT_SIZEback to summary
private static final int POINT_ELEMENT_SIZE
POINT_NORMAL_TEXCOORDback to summary
public static final VertexFormat POINT_NORMAL_TEXCOORD

Specifies the format of a vertex that consists of a point, normal and texture coordinates.

POINT_TEXCOORDback to summary
public static final VertexFormat POINT_TEXCOORD

Specifies the format of a vertex that consists of a point and texture coordinates.

pointIndexOffsetback to summary
private final int pointIndexOffset
TEXCOORD_ELEMENT_SIZEback to summary
private static final int TEXCOORD_ELEMENT_SIZE
texCoordIndexOffsetback to summary
private final int texCoordIndexOffset
vertexIndexSizeback to summary
private final int vertexIndexSize

Constructor Detail

VertexFormatback to summary
private VertexFormat(String name, int vertexIndexSize, int pointIndexOffset, int normalIndexOffset, int texCoordIndexOffset)

Method Detail

getNormalElementSizeback to summary
pack-priv int getNormalElementSize()
getNormalIndexOffsetback to summary
public int getNormalIndexOffset()

Returns the index offset in the face array of the normal component within a vertex.

Returns:int

the offset to the normal component.

getPointElementSizeback to summary
pack-priv int getPointElementSize()
getPointIndexOffsetback to summary
public int getPointIndexOffset()

Returns the index offset in the face array of the point component within a vertex.

Returns:int

the offset to the point component.

getTexCoordElementSizeback to summary
pack-priv int getTexCoordElementSize()
getTexCoordIndexOffsetback to summary
public int getTexCoordIndexOffset()

Returns the index offset in the face array of the texture coordinates component within a vertex.

Returns:int

the offset to the texture coordinates component.

getVertexIndexSizeback to summary
public int getVertexIndexSize()

Returns the number of component indices that represents a vertex. For example, a POINT_TEXCOORD vertex consists of 2 indices, one for point component and the other for texture coordinates component. Hence its value will be 2.

Returns:int

the number of component indices

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override