com.jme3.renderer.queue
列挙型 RenderQueue.Bucket

java.lang.Object
  上位を拡張 java.lang.Enum<RenderQueue.Bucket>
      上位を拡張 com.jme3.renderer.queue.RenderQueue.Bucket
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Comparable<RenderQueue.Bucket>
含まれているクラス:
RenderQueue

public static enum RenderQueue.Bucket
extends java.lang.Enum<RenderQueue.Bucket>

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).


列挙型定数の概要
Gui
          This is a special mode, for drawing 2D object without perspective (such as GUI or HUD parts).
Inherit
          A special mode, that will ensure that this spatial uses the same mode as the parent Node does.
Opaque
          The renderer will try to find the optimal order for rendering all objects using this mode.
Sky
          A special mode used for rendering really far away, flat objects - e.g. skies.
Translucent
          A special mode used for rendering transparent objects that should not be effected by SceneProcessor.
Transparent
          This is the mode you should use for object with transparency in them.
 
メソッドの概要
static RenderQueue.Bucket valueOf(java.lang.String name)
          指定した名前を持つこの型の列挙型定数を返します。
static RenderQueue.Bucket[] values()
          この列挙型の定数を含む配列を宣言されている順序で返します。
 
クラス java.lang.Enum から継承されたメソッド
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, wait, wait, wait
 

列挙型定数の詳細

Opaque

public static final RenderQueue.Bucket Opaque
The 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.


Transparent

public static final RenderQueue.Bucket Transparent
This 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.


Sky

public static final RenderQueue.Bucket Sky
A 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.


Translucent

public static final RenderQueue.Bucket Translucent
A special mode used for rendering transparent objects that should not be effected by SceneProcessor. Generally this would contain translucent objects, and also objects that do not write to the depth buffer such as particle emitters.


Gui

public static final RenderQueue.Bucket Gui
This 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.


Inherit

public static final RenderQueue.Bucket Inherit
A special mode, that will ensure that this spatial uses the same mode as the parent Node does.

メソッドの詳細

values

public static RenderQueue.Bucket[] values()
この列挙型の定数を含む配列を宣言されている順序で返します。 このメソッドは次のようにして定数を反復するために使用できます:
for (RenderQueue.Bucket c : RenderQueue.Bucket.values())
    System.out.println(c);

戻り値:
この列挙型の定数を宣言されている順序で含む配列

valueOf

public static RenderQueue.Bucket valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と厳密に 一致している必要があります (余分な空白文字を含めることはできません)。

パラメータ:
name - 返される列挙型定数の名前
戻り値:
指定された名前を持つ列挙型定数
例外:
java.lang.IllegalArgumentException - 指定された名前を持つ定数を この列挙型が持っていない場合
java.lang.NullPointerException - 引数が null の場合