Enum Class VertexBuffer.Format

java.lang.Object
java.lang.Enum<VertexBuffer.Format>
com.jme3.scene.VertexBuffer.Format
All Implemented Interfaces:
Serializable, Comparable<VertexBuffer.Format>, Constable
Enclosing class:
VertexBuffer

public static enum VertexBuffer.Format extends Enum<VertexBuffer.Format>
Specifies format of the data stored in the buffer. This should directly correspond to the buffer's class, for example, an UnsignedShort formatted buffer should use the class ShortBuffer (e.g. the closest resembling type). For the Half type, ByteBuffers should be used.
  • Enum Constant Details

  • Method Details

    • values

      public static VertexBuffer.Format[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VertexBuffer.Format valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getComponentSize

      public int getComponentSize()
      Returns the size in bytes of this data type.
      Returns:
      Size in bytes of this data type.