Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: VertexFormat

[16:14] static extends: object

Layout-information utility for the JavaFX VertexFormat values, which describe how vertex data is laid out in a TriangleMesh. The two formats are POINT_TEXCOORD (each vertex carries a position and a texture coordinate) and POINT_NORMAL_TEXCOORD (each vertex carries a position, a normal, and a texture coordinate). Use the fxvertexformat enum for the format values themselves (for example fxvertexformat.POINT_TEXCOORD); this class only exposes the per-format index sizes and offsets by name.

Methods

  • vertexIndexSize (string Name)

    Returns the integer count of vertex index components per face point (2 for POINT_TEXCOORD, 3 for POINT_NORMAL_TEXCOORD).

    • @p Name is an fxvertexformat value or the VertexFormat name.
    • @r An int with the vertex index size.
  • getVertexIndexSize (string Name)

    Returns the integer count of vertex index components per face point. Equivalent to vertexIndexSize but mirrors the JavaFX method name.

    • @p Name is an fxvertexformat value or the VertexFormat name.
    • @r An int with the vertex index size.
  • getPointIndexOffset (string Name)

    Returns the offset within each vertex index group where the point index lives (always 0 for both vertex formats).

    • @p Name is an fxvertexformat value or the VertexFormat name.
    • @r An int with the point index offset.
  • getNormalIndexOffset (string Name)

    Returns the offset within each vertex index group where the normal index lives. Only meaningful for POINT_NORMAL_TEXCOORD.

    • @p Name is an fxvertexformat value or the VertexFormat name.
    • @r An int with the normal index offset.
  • getTexCoordIndexOffset (string Name)

    Returns the offset within each vertex index group where the texture coordinate index lives.

    • @p Name is an fxvertexformat value or the VertexFormat name.
    • @r An int with the texCoord index offset.