com.threerings.opengl.renderer
Class SimpleBatch.DrawShortRangeElements
java.lang.Object
com.threerings.opengl.renderer.SimpleBatch.DrawCommand
com.threerings.opengl.renderer.SimpleBatch.DrawElements
com.threerings.opengl.renderer.SimpleBatch.DrawRangeElements
com.threerings.opengl.renderer.SimpleBatch.DrawShortRangeElements
- Enclosing class:
- SimpleBatch
public static class SimpleBatch.DrawShortRangeElements
- extends SimpleBatch.DrawRangeElements
Draws the batch by calling GL12.glDrawRangeElements(int, int, int, java.nio.ByteBuffer) using a short buffer.
|
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. |
void |
setLimits(int offset,
int length)
Sets the limits defining the range of indices to draw. |
SimpleBatch.DrawShortRangeElements
public SimpleBatch.DrawShortRangeElements(int mode,
int start,
int end,
ShortBuffer indices)
setLimits
public void setLimits(int offset,
int length)
- Description copied from class:
SimpleBatch.DrawElements
- Sets the limits defining the range of indices to draw.
- Specified by:
setLimits in class SimpleBatch.DrawElements
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.