com.threerings.opengl.renderer
Class SimpleBatch.DrawElements

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

public abstract static class SimpleBatch.DrawElements
extends SimpleBatch.DrawCommand

Draws the batch by calling GL11.glDrawElements(int, java.nio.ByteBuffer).


Constructor Summary
SimpleBatch.DrawElements(int mode)
           
 
Method Summary
abstract  void setLimits(int offset, int length)
          Sets the limits defining the range of indices to draw.
 void setRange(int start, int end)
          Changes the command's range parameters, if it has them.
 
Methods inherited from class com.threerings.opengl.renderer.SimpleBatch.DrawCommand
call, getPrimitiveCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBatch.DrawElements

public SimpleBatch.DrawElements(int mode)
Method Detail

setLimits

public abstract void setLimits(int offset,
                               int length)
Sets the limits defining the range of indices to draw.


setRange

public void setRange(int start,
                     int end)
Changes the command's range parameters, if it has them.



Copyright © 2011. All Rights Reserved.