com.threerings.opengl.compositor
Class RenderQueue.Group

java.lang.Object
  extended by com.threerings.opengl.compositor.RenderQueue.Group
Enclosing class:
RenderQueue

public static class RenderQueue.Group
extends Object

Contains a group of render queues.


Nested Class Summary
static class RenderQueue.Group.State
          Represents the saved state of a group.
 
Field Summary
protected  GlContext _ctx
          The application context.
protected  ComparableArrayList<RenderQueue> _queues
          The set of render queues, sorted by priority.
protected  HashMap<String,RenderQueue> _queuesByName
          Maps render queue names to the created queues.
 
Constructor Summary
RenderQueue.Group(GlContext ctx)
          Creates a new group.
 
Method Summary
 void clearQueues()
          Clears out the contents of the queues.
 RenderQueue getQueue(String name)
          Retrieves a reference to a render queue.
 void renderQueues()
          Renders the contents of the queues.
 void renderQueues(String type)
          Renders the contents of the queues of the specified type.
 void renderQueues(String type, int minPriority, int maxPriority)
          Renders the contents of the queues of the specified type whose priority levels fall within the specified (inclusive) limits.
 void sortQueues()
          Sorts the queues in preparation for rendering.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ctx

protected GlContext _ctx
The application context.


_queuesByName

protected HashMap<String,RenderQueue> _queuesByName
Maps render queue names to the created queues.


_queues

protected ComparableArrayList<RenderQueue> _queues
The set of render queues, sorted by priority.

Constructor Detail

RenderQueue.Group

public RenderQueue.Group(GlContext ctx)
Creates a new group.

Method Detail

getQueue

public RenderQueue getQueue(String name)
Retrieves a reference to a render queue.


sortQueues

public void sortQueues()
Sorts the queues in preparation for rendering.


renderQueues

public void renderQueues()
Renders the contents of the queues.


renderQueues

public void renderQueues(String type)
Renders the contents of the queues of the specified type.


renderQueues

public void renderQueues(String type,
                         int minPriority,
                         int maxPriority)
Renders the contents of the queues of the specified type whose priority levels fall within the specified (inclusive) limits.


clearQueues

public void clearQueues()
Clears out the contents of the queues.