public abstract class RenderBucket extends Inlist<RenderBucket>
Inlist.List<T extends Inlist<?>>| Modifier and Type | Field and Description |
|---|---|
static byte |
BITMAP |
static byte |
CIRCLE |
static byte |
EXTRUSION |
static byte |
HAIRLINE |
protected VertexData |
indiceItems |
protected int |
indiceOffset |
static byte |
LINE |
static byte |
MESH |
protected int |
numIndices |
protected int |
numVertices
Number of vertices for this layer.
|
static byte |
POLYGON |
static byte |
SYMBOL |
static byte |
TEXLINE |
byte |
type |
protected VertexData |
vertexItems
Temporary list of vertex data.
|
protected int |
vertexOffset |
| Modifier | Constructor and Description |
|---|---|
protected |
RenderBucket(byte type,
boolean indexed,
boolean quads) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clear()
Clear all resources.
|
protected void |
compile(java.nio.ShortBuffer vboData,
java.nio.ShortBuffer iboData) |
protected void |
compileIndicesItems(java.nio.ShortBuffer iboData) |
protected void |
compileVertexItems(java.nio.ShortBuffer vboData) |
int |
getIndiceOffset()
Start position in ibo for this bucket (in bytes)
|
int |
getVertexOffset()
For line- and polygon-buckets this is the offset
of VERTICES in its bucket.vbo.
|
protected void |
prepare()
Final preparation of content before compilation
for stuff that should not be done on render-thread.
|
void |
setLevel(int level) |
void |
setVertexOffset(int offset) |
appendItem, appendList, get, last, next, prependRelative, push, remove, sizepublic static final byte LINE
public static final byte TEXLINE
public static final byte POLYGON
public static final byte MESH
public static final byte EXTRUSION
public static final byte HAIRLINE
public static final byte SYMBOL
public static final byte BITMAP
public static final byte CIRCLE
public final byte type
protected int numVertices
protected int numIndices
protected final VertexData vertexItems
protected final VertexData indiceItems
protected int vertexOffset
protected int indiceOffset
protected void clear()
protected void prepare()
public int getVertexOffset()
public int getIndiceOffset()
public void setLevel(int level)
public void setVertexOffset(int offset)
protected void compile(java.nio.ShortBuffer vboData,
java.nio.ShortBuffer iboData)
protected void compileVertexItems(java.nio.ShortBuffer vboData)
protected void compileIndicesItems(java.nio.ShortBuffer iboData)