com.threerings.opengl.compositor
Class RenderQueue.GroupBatch
java.lang.Object
com.threerings.opengl.renderer.Batch
com.threerings.opengl.compositor.RenderQueue.GroupBatch
- All Implemented Interfaces:
- Cloneable
- Enclosing class:
- RenderQueue
protected static class RenderQueue.GroupBatch
- extends Batch
A batch that contains its own RenderQueue.Group.
| Fields inherited from class com.threerings.opengl.renderer.Batch |
depth, key |
|
Method Summary |
boolean |
draw(Renderer renderer)
Draws this batch using the specified renderer. |
boolean |
update()
Updates the batch in preparation for rendering. |
group
public RenderQueue.Group group
- The queue group for this batch.
RenderQueue.GroupBatch
public RenderQueue.GroupBatch(GlContext ctx)
- Creates a new group batch.
update
public boolean update()
- Updates the batch in preparation for rendering.
- Returns:
- true if the group contains batches for rendering, false if it is empty.
draw
public boolean draw(Renderer renderer)
- Description copied from class:
Batch
- Draws this batch using the specified renderer.
- Specified by:
draw in class Batch
- Returns:
- true if the batch changed the color state, in which case it should be invalidated.