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.


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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2011. All Rights Reserved.