public abstract class RenderBucket extends Inlist<RenderBucket>
Inlist.List<T extends Inlist<?>>| Modifier and Type | Field and Description |
|---|---|
static int |
BITMAP |
static int |
CIRCLE |
static int |
EXTRUSION |
static int |
HAIRLINE |
protected VertexData |
indiceItems |
protected int |
indiceOffset |
static int |
LINE |
static int |
MESH |
protected int |
numIndices |
protected int |
numVertices
Number of vertices for this layer.
|
static int |
POLYGON |
static int |
SYMBOL |
static int |
TEXLINE |
int |
type |
protected VertexData |
vertexItems
Temporary list of vertex data.
|
protected int |
vertexOffset |
| Modifier | Constructor and Description |
|---|---|
protected |
RenderBucket(int 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
|
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 int LINE
public static final int TEXLINE
public static final int POLYGON
public static final int MESH
public static final int EXTRUSION
public static final int HAIRLINE
public static final int SYMBOL
public static final int BITMAP
public static final int CIRCLE
public final int 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)