|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.renderer.RenderQueue
public class RenderQueue
This optional class supports queueing of rendering states that are drawn when displayBackBuffer is called on the renderer. All spatials in the opaque bucket are rendered first in order closest to farthest. Then all spatials in the opaque bucket are rendered in order farthest to closest. Finally all spatials in the ortho bucket are rendered in ortho mode from highest to lowest Z order. As a user, you shouldn't need to use this class directly. All you'll need to do is call Spatial.setRenderQueueMode .
Spatial.setRenderQueueMode(int)
Constructor Summary | |
---|---|
RenderQueue(Renderer r)
Creates a new render queue that will work with the given renderer. |
Method Summary | |
---|---|
void |
addToQueue(Spatial s,
int bucket)
Add a given Spatial to the RenderQueue. |
void |
clearBuckets()
clears all of the buckets. |
boolean |
isTwoPassTransparency()
|
void |
renderBuckets()
Renders the opaque, clone, transparent, and ortho buckets in that order. |
void |
setTwoPassTransparency(boolean enabled)
Enables/Disables two pass transparency rendering. |
void |
swapBuckets()
swaps all of the buckets with the back buckets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenderQueue(Renderer r)
r
- Method Detail |
---|
public void setTwoPassTransparency(boolean enabled)
enabled
- set true to turn on two pass transparency renderingpublic boolean isTwoPassTransparency()
public void addToQueue(Spatial s, int bucket)
s
- Spatial to add.bucket
- A bucket type to add to.Spatial.setRenderQueueMode(int)
,
Renderer.QUEUE_OPAQUE
,
Renderer.QUEUE_ORTHO
,
Renderer.QUEUE_TRANSPARENT
public void clearBuckets()
public void swapBuckets()
public void renderBuckets()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |