Enum Class DataMode

java.lang.Object
java.lang.Enum<DataMode>
com.ardor3d.scenegraph.hint.DataMode
All Implemented Interfaces:
Serializable, Comparable<DataMode>, Constable

public enum DataMode extends Enum<DataMode>
Enum used to describe how we prefer data to be sent to the card.
  • Enum Constant Details

    • Inherit

      public static final DataMode Inherit
      Use our parent's DataMode. If we do not have a parent, Arrays will be used.
    • Arrays

      public static final DataMode Arrays
      Send each data buffer to the card using vertex arrays.
    • VBO

      public static final DataMode VBO
      Send each data buffer to the card using vertex buffer objects. This is usually faster than Arrays, but may not be supported on older cards. If not supported, Arrays is used by the Renderer.
  • Method Details

    • values

      public static DataMode[] 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 DataMode 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