Package com.jme3.scene
Enum Class Spatial.CullHint
- All Implemented Interfaces:
Serializable
,Comparable<Spatial.CullHint>
,Constable
- Enclosing class:
- Spatial
Specifies how frustum culling should be handled by
this spatial.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAlways cull this from the view, throwing away this object and any children from rendering commands.Do not draw if we are not at least partially within the view frustum of the camera.Do whatever our parent does.Never cull this from view, always draw it. -
Method Summary
Modifier and TypeMethodDescriptionstatic Spatial.CullHint
Returns the enum constant of this class with the specified name.static Spatial.CullHint[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Inherit
Do whatever our parent does. If no parent, default toDynamic
. -
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
Always cull this from the view, throwing away this object and any children from rendering commands. -
Never
Never cull this from view, always draw it. Note that we will still get culled if our parent is culled.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-