Package com.jme3.renderer.queue
Enum Class RenderQueue.Bucket
- All Implemented Interfaces:
- Serializable,- Comparable<RenderQueue.Bucket>,- Constable
- Enclosing class:
- RenderQueue
The render queue 
Bucket specifies the bucket
 to which the spatial will be placed when rendered. 
 
 The behavior of the rendering will differ depending on which 
 bucket the spatial is placed. A spatial's queue bucket can be set
 via Spatial.setQueueBucket(com.jme3.renderer.queue.RenderQueue.Bucket).
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThis is a special mode, for drawing 2D object without perspective (such as GUI or HUD parts).A special mode, that will ensure that this spatial uses the same mode as the parent Node does.The renderer will try to find the optimal order for rendering all objects using this mode.A special mode used for rendering really far away, flat objects - e.g.A special mode used for rendering transparent objects that should not be affected bySceneProcessor.This is the mode you should use for object with transparency in them.
- 
Method SummaryModifier and TypeMethodDescriptionstatic RenderQueue.BucketReturns the enum constant of this class with the specified name.static RenderQueue.Bucket[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
OpaqueThe renderer will try to find the optimal order for rendering all objects using this mode. You should use this mode for most normal objects, except transparent ones, as it could give a nice performance boost to your application.
- 
TransparentThis is the mode you should use for object with transparency in them. It will ensure the objects furthest away are rendered first. That ensures when another transparent object is drawn on top of previously drawn objects, you can see those (and the object drawn using Opaque) through the transparent parts of the newly drawn object.
- 
SkyA special mode used for rendering really far away, flat objects - e.g. skies. In this mode, the depth is set to infinity so spatials in this bucket will appear behind everything, the downside to this bucket is that 3D objects will not be rendered correctly due to lack of depth testing.
- 
TranslucentA special mode used for rendering transparent objects that should not be affected bySceneProcessor. Generally this would contain translucent objects, and also objects that do not write to the depth buffer such as particle emitters.
- 
GuiThis is a special mode, for drawing 2D object without perspective (such as GUI or HUD parts). The spatial's world coordinate system has the range of [0, 0, -1] to [Width, Height, 1] where Width/Height is the resolution of the screen rendered to. Any spatials outside of that range are culled.
- 
InheritA special mode, that will ensure that this spatial uses the same mode as the parent Node does.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
 
-