com.threerings.opengl.compositor
Class RenderQueue.GroupBatch

java.lang.Object
  extended by com.threerings.opengl.renderer.Batch
      extended by 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.


Nested Class Summary
static class RenderQueue.GroupBatch.State
          Represents the saved state of a batch.
 
Field Summary
 RenderQueue.Group group
          The queue group for this batch.
 
Fields inherited from class com.threerings.opengl.renderer.Batch
depth, key
 
Constructor Summary
RenderQueue.GroupBatch(GlContext ctx)
          Creates a new group batch.
 
Method Summary
 boolean draw(Renderer renderer)
          Draws this batch using the specified renderer.
 boolean update()
          Updates the batch in preparation for rendering.
 
Methods inherited from class com.threerings.opengl.renderer.Batch
clone, compareKeys, getPrimitiveCount
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

group

public RenderQueue.Group group
The queue group for this batch.

Constructor Detail

RenderQueue.GroupBatch

public RenderQueue.GroupBatch(GlContext ctx)
Creates a new group batch.

Method Detail

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.