com.threerings.opengl.renderer
Class SimpleBatch.DrawArrays

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

public static class SimpleBatch.DrawArrays
extends SimpleBatch.DrawCommand

Draws the batch by calling GL11.glDrawArrays(int, int, int).


Field Summary
protected  int _count
          The number of indices to be rendered.
protected  int _first
          The first index in the arrays.
protected  int _mode
          The primitive mode.
 
Constructor Summary
SimpleBatch.DrawArrays(int mode, int first, int count)
           
 
Method Summary
 boolean call()
          Calls the draw command, causing the batch's primitives to be rendered.
 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

_mode

protected int _mode
The primitive mode.


_first

protected int _first
The first index in the arrays.


_count

protected int _count
The number of indices to be rendered.

Constructor Detail

SimpleBatch.DrawArrays

public SimpleBatch.DrawArrays(int mode,
                              int first,
                              int count)
Method Detail

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