Package org.oscim.renderer.bucket
Class RenderBucket
- Direct Known Subclasses:
CircleBucket,ExtrusionBucket,HairLineBucket,LineBucket,MeshBucket,PolygonBucket,TextureBucket
-
Nested Class Summary
Nested classes/interfaces inherited from class org.oscim.utils.pool.Inlist
Inlist.List<T extends Inlist<?>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final byteprotected final VertexDataprotected intstatic final bytestatic final byteprotected intprotected intNumber of vertices for this layer.static final bytestatic final bytestatic final bytefinal byteprotected final VertexDataTemporary list of vertex data.protected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclear()Clear all resources.protected voidcompile(ShortBuffer vboData, ShortBuffer iboData) protected voidcompileIndicesItems(ShortBuffer iboData) protected voidcompileVertexItems(ShortBuffer vboData) intStart position in ibo for this bucket (in bytes)intFor line- and polygon-buckets this is the offset of VERTICES in its bucket.vbo.protected voidprepare()Final preparation of content before compilation for stuff that should not be done on render-thread.voidsetLevel(int level) voidsetVertexOffset(int offset) Methods inherited from class org.oscim.utils.pool.Inlist
appendItem, appendList, get, last, next, prependRelative, push, remove, size
-
Field Details
-
LINE
public static final byte LINE- See Also:
-
TEXLINE
public static final byte TEXLINE- See Also:
-
POLYGON
public static final byte POLYGON- See Also:
-
MESH
public static final byte MESH- See Also:
-
EXTRUSION
public static final byte EXTRUSION- See Also:
-
HAIRLINE
public static final byte HAIRLINE- See Also:
-
SYMBOL
public static final byte SYMBOL- See Also:
-
BITMAP
public static final byte BITMAP- See Also:
-
CIRCLE
public static final byte CIRCLE- See Also:
-
type
public final byte type -
numVertices
protected int numVerticesNumber of vertices for this layer. -
numIndices
protected int numIndices -
vertexItems
Temporary list of vertex data. -
indiceItems
-
vertexOffset
protected int vertexOffset -
indiceOffset
protected int indiceOffset
-
-
Constructor Details
-
RenderBucket
protected RenderBucket(byte type, boolean indexed, boolean quads)
-
-
Method Details
-
clear
protected void clear()Clear all resources. -
prepare
protected void prepare()Final preparation of content before compilation for stuff that should not be done on render-thread. -
getVertexOffset
public int getVertexOffset()For line- and polygon-buckets this is the offset of VERTICES in its bucket.vbo. For all other types it is the byte offset in vbo. FIXME - always use byte offset? -
getIndiceOffset
public int getIndiceOffset()Start position in ibo for this bucket (in bytes) -
setLevel
public void setLevel(int level) -
setVertexOffset
public void setVertexOffset(int offset) -
compile
-
compileVertexItems
-
compileIndicesItems
-