RenderElement: docs
This commit is contained in:
parent
31a45b0468
commit
c34bc3306c
@ -35,20 +35,20 @@ public abstract class RenderElement extends Inlist<RenderElement> {
|
|||||||
|
|
||||||
public final int type;
|
public final int type;
|
||||||
|
|
||||||
/** drawing order from bottom to top. */
|
/** Drawing order from bottom to top. */
|
||||||
int level;
|
int level;
|
||||||
|
|
||||||
/** number of vertices for this layer. */
|
/** Number of vertices for this layer. */
|
||||||
protected int numVertices;
|
protected int numVertices;
|
||||||
|
|
||||||
/** temporary list of vertex data. */
|
/** Temporary list of vertex data. */
|
||||||
protected final VertexData vertexItems = new VertexData();
|
protected final VertexData vertexItems = new VertexData();
|
||||||
|
|
||||||
protected RenderElement(int type) {
|
protected RenderElement(int type) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** clear all resources. */
|
/** Clear all resources. */
|
||||||
protected void clear() {
|
protected void clear() {
|
||||||
vertexItems.dispose();
|
vertexItems.dispose();
|
||||||
numVertices = 0;
|
numVertices = 0;
|
||||||
@ -67,6 +67,12 @@ public abstract class RenderElement extends Inlist<RenderElement> {
|
|||||||
compileVertexItems(sbuf);
|
compileVertexItems(sbuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For line- and polygon-layers this is the offset
|
||||||
|
* of VERTICES in its layers.vbo.
|
||||||
|
* For all other types it is the byte offset in vbo.
|
||||||
|
* FIXME - always use byte offset?
|
||||||
|
*/
|
||||||
public int getOffset() {
|
public int getOffset() {
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
@ -75,11 +81,6 @@ public abstract class RenderElement extends Inlist<RenderElement> {
|
|||||||
this.offset = offset;
|
this.offset = offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* For line- and polygon-layers this is the offset
|
|
||||||
* of VERTICES in its layers.vbo.
|
|
||||||
* For all other types it is the byte offset in vbo.
|
|
||||||
*/
|
|
||||||
protected int offset;
|
protected int offset;
|
||||||
|
|
||||||
protected void compile(ShortBuffer vertexBuffer, ShortBuffer indexBuffer) {
|
protected void compile(ShortBuffer vertexBuffer, ShortBuffer indexBuffer) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user