Enum Class VertexBuffer.Usage

All Implemented Interfaces:
Serializable, Comparable<VertexBuffer.Usage>, Constable
Enclosing class:

public static enum VertexBuffer.Usage extends Enum<VertexBuffer.Usage>
The usage of the VertexBuffer, specifies how often the buffer is used. This can determine if a vertex buffer is placed in VRAM or held in video memory, but no guarantees are made- it's only a hint.
  • Enum Constant Details

    • Static

      public static final VertexBuffer.Usage Static
      Mesh data is sent once and very rarely updated.
    • Dynamic

      public static final VertexBuffer.Usage Dynamic
      Mesh data is updated occasionally (once per frame or less).
    • Stream

      public static final VertexBuffer.Usage Stream
      Mesh data is updated every frame.
    • CpuOnly

      public static final VertexBuffer.Usage CpuOnly
      Mesh data is not sent to GPU at all. It is only used by the CPU.
  • Method Details

    • values

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

      public static VertexBuffer.Usage 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null