public class ExtrusionBucket extends RenderBucket
Inlist.List<T extends Inlist<?>>| Modifier and Type | Field and Description |
|---|---|
int[] |
idx
indices for: 0.
|
int[] |
off
indices offsets in bytes
|
BITMAP, CIRCLE, EXTRUSION, HAIRLINE, indiceItems, indiceOffset, LINE, MESH, numIndices, numVertices, POLYGON, SYMBOL, TEXLINE, type, vertexItems, vertexOffset| Constructor and Description |
|---|
ExtrusionBucket(int level,
float groundResolution,
float[] colors)
ExtrusionLayer for polygon geometries.
|
ExtrusionBucket(int level,
float groundResolution,
int color)
ExtrusionLayer for triangle geometries / meshes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMesh(GeometryBuffer element)
Add MapElement which provides meshes
|
void |
addPoly(GeometryBuffer element,
float height,
float minHeight)
Add MapElement which provides polygons
|
void |
clear()
Clear all resources.
|
void |
compile(java.nio.ShortBuffer vboData,
java.nio.ShortBuffer iboData) |
int |
getColor() |
float[] |
getColors() |
ExtrusionBucket |
next() |
protected void |
prepare()
Final preparation of content before compilation
for stuff that should not be done on render-thread.
|
compileIndicesItems, compileVertexItems, getIndiceOffset, getVertexOffset, setLevel, setVertexOffsetappendItem, appendList, get, last, prependRelative, push, remove, sizepublic int[] idx
public int[] off
public ExtrusionBucket(int level,
float groundResolution,
float[] colors)
public ExtrusionBucket(int level,
float groundResolution,
int color)
public void addMesh(GeometryBuffer element)
element - the map element to addpublic void addPoly(GeometryBuffer element, float height, float minHeight)
element - the map element to addheight - the maximum height of elementminHeight - the minimum height of elementpublic void compile(java.nio.ShortBuffer vboData,
java.nio.ShortBuffer iboData)
compile in class RenderBucketpublic void clear()
RenderBucketclear in class RenderBucketpublic float[] getColors()
public int getColor()
protected void prepare()
RenderBucketprepare in class RenderBucketpublic ExtrusionBucket next()
next in class Inlist<RenderBucket>