com.threerings.opengl.renderer
Class SimpleBatch.CallList

java.lang.Object
  extended by com.threerings.opengl.renderer.SimpleBatch.DrawCommand
      extended by com.threerings.opengl.renderer.SimpleBatch.CallList
Enclosing class:
SimpleBatch

public static class SimpleBatch.CallList
extends SimpleBatch.DrawCommand

Draws the batch by calling a display list containing the geometry.


Field Summary
protected  DisplayList _list
          The display list to call.
protected  boolean _modifiesColorState
          Whether or not the display list modifies the color state.
protected  int _primitiveCount
          The number of primitives rendered in the list.
 
Constructor Summary
SimpleBatch.CallList(DisplayList list, boolean modifiesColorState, int primitiveCount)
           
 
Method Summary
 boolean call()
          Calls the draw command, causing the batch's primitives to be rendered.
 DisplayList getList()
          Returns a reference to the display list.
 int getPrimitiveCount()
          Returns the number of primitives rendered by this command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_list

protected DisplayList _list
The display list to call.


_modifiesColorState

protected boolean _modifiesColorState
Whether or not the display list modifies the color state.


_primitiveCount

protected int _primitiveCount
The number of primitives rendered in the list.

Constructor Detail

SimpleBatch.CallList

public SimpleBatch.CallList(DisplayList list,
                            boolean modifiesColorState,
                            int primitiveCount)
Method Detail

getList

public DisplayList getList()
Returns a reference to the display list.


call

public boolean call()
Description copied from class: SimpleBatch.DrawCommand
Calls the draw command, causing the batch's primitives to be rendered.

Specified by:
call in class SimpleBatch.DrawCommand
Returns:
true if the command affected the color state, in which case it should be invalidated.

getPrimitiveCount

public int getPrimitiveCount()
Description copied from class: SimpleBatch.DrawCommand
Returns the number of primitives rendered by this command.

Specified by:
getPrimitiveCount in class SimpleBatch.DrawCommand