|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.renderer.Batch
public abstract class Batch
A geometry batch that can be queued for rendering.
| Field Summary | |
|---|---|
float |
depth
The batch's eye space z coordinate (negative if in front of the viewer). |
int[] |
key
A comparable representation of the batch's state. |
| Constructor Summary | |
|---|---|
Batch()
|
|
| Method Summary | |
|---|---|
Batch |
clone()
|
static int |
compareKeys(int[] k1,
int[] k2)
Compares two packed state keys. |
abstract boolean |
draw(Renderer renderer)
Draws this batch using the specified renderer. |
int |
getPrimitiveCount()
Returns the number of primitives in this batch (optional; returns zero by default). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public float depth
public int[] key
| Constructor Detail |
|---|
public Batch()
| Method Detail |
|---|
public static int compareKeys(int[] k1,
int[] k2)
public abstract boolean draw(Renderer renderer)
public int getPrimitiveCount()
public Batch clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||