public abstract static class Batchable.FixedSizeBatchable extends Batchable
Batchable.FixedSizeBatchable| Constructor and Description |
|---|
FixedSizeBatchable() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
apply(short[] triangles,
int triangleStartingIndex,
short firstVertex)
Called by FlexBatch to apply triangle index data, only if this FixedSizeBatchable is drawn by a FlexBatch that is not
limited to drawing FixedSizeBatchables.
|
protected abstract int |
getTrianglesPerBatchable() |
protected abstract int |
getVerticesPerBatchable() |
protected abstract void |
populateTriangleIndices(short[] triangles)
Populate the fixed triangle array for the FlexBatch's mesh.
|
static <T extends Batchable.FixedSizeBatchable> |
prepareIndices(java.lang.Class<T> fixedSizeBatchableType)
Primes a FixedSizeBatchable implementation for drawing with FlexBatches that are not limited to FixedSizeBatchables.
|
addVertexAttributes, apply, getNumberOfTextures, prepareContext, prepareSharedContext, refreshpublic static <T extends Batchable.FixedSizeBatchable> void prepareIndices(java.lang.Class<T> fixedSizeBatchableType)
protected abstract int getTrianglesPerBatchable()
protected abstract int getVerticesPerBatchable()
protected abstract void populateTriangleIndices(short[] triangles)
triangles - An array of triangle indices that, before this method returns, must be fully populated for drawing a
series of this Batchable type.protected final int apply(short[] triangles,
int triangleStartingIndex,
short firstVertex)
Batchable.apply(short[], int, short)