com.threerings.opengl.renderer
Class SimpleBatch.DrawCommand

java.lang.Object
  extended by com.threerings.opengl.renderer.SimpleBatch.DrawCommand
Direct Known Subclasses:
SimpleBatch.CallList, SimpleBatch.DrawArrays, SimpleBatch.DrawElements
Enclosing class:
SimpleBatch

public abstract static class SimpleBatch.DrawCommand
extends Object

The superclass for the stateless draw commands that actually draw the primitives.


Constructor Summary
SimpleBatch.DrawCommand()
           
 
Method Summary
abstract  boolean call()
          Calls the draw command, causing the batch's primitives to be rendered.
abstract  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.DrawCommand

public SimpleBatch.DrawCommand()
Method Detail

call

public abstract boolean call()
Calls the draw command, causing the batch's primitives to be rendered.

Returns:
true if the command affected the color state, in which case it should be invalidated.

getPrimitiveCount

public abstract int getPrimitiveCount()
Returns the number of primitives rendered by this command.



Copyright © 2011. All Rights Reserved.