Enum Class Spatial.CullHint

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

public static enum Spatial.CullHint extends Enum<Spatial.CullHint>
Specifies how frustum culling should be handled by this spatial.
  • Enum Constant Details

    • Inherit

      public static final Spatial.CullHint Inherit
      Do whatever our parent does. If no parent, default to Dynamic.
    • Dynamic

      public static final Spatial.CullHint Dynamic
      Do not draw if we are not at least partially within the view frustum of the camera. The defined Camera planes determine whether this Spatial should be culled.
    • Always

      public static final Spatial.CullHint Always
      Always cull this from the view, throwing away this object and any children from rendering commands.
    • Never

      public static final Spatial.CullHint Never
      Never cull this from view, always draw it. Note that we will still get culled if our parent is culled.
  • Method Details

    • values

      public static Spatial.CullHint[] 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 Spatial.CullHint 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