|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.renderer.SimpleBatch.DrawCommand
com.threerings.opengl.renderer.SimpleBatch.DrawElements
com.threerings.opengl.renderer.SimpleBatch.DrawBufferElements
public static class SimpleBatch.DrawBufferElements
Draws the batch by calling GL11.glDrawElements(int, java.nio.ByteBuffer) using the current buffer object.
| Field Summary | |
|---|---|
protected int |
_count
The number of elements to render. |
protected long |
_offset
The offset into the index buffer. |
protected int |
_type
The type of data in the index buffer. |
| Fields inherited from class com.threerings.opengl.renderer.SimpleBatch.DrawElements |
|---|
_mode |
| Constructor Summary | |
|---|---|
SimpleBatch.DrawBufferElements(int mode,
int count,
int type,
long offset)
|
|
| 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. |
| Methods inherited from class com.threerings.opengl.renderer.SimpleBatch.DrawElements |
|---|
setRange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _count
protected int _type
protected long _offset
| Constructor Detail |
|---|
public SimpleBatch.DrawBufferElements(int mode,
int count,
int type,
long offset)
| Method Detail |
|---|
public void setLimits(int offset,
int length)
SimpleBatch.DrawElements
setLimits in class SimpleBatch.DrawElementspublic boolean call()
SimpleBatch.DrawCommand
call in class SimpleBatch.DrawCommandpublic int getPrimitiveCount()
SimpleBatch.DrawCommand
getPrimitiveCount in class SimpleBatch.DrawCommand
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||