add beginnings of BuildingOverlay
This commit is contained in:
@@ -29,7 +29,7 @@ public class VertexPool {
|
||||
pool = null;
|
||||
}
|
||||
|
||||
static synchronized VertexPoolItem get() {
|
||||
public static synchronized VertexPoolItem get() {
|
||||
|
||||
if (pool == null && count > 0) {
|
||||
Log.d("VertexPool", "XXX wrong count: " + count);
|
||||
@@ -61,7 +61,7 @@ public class VertexPool {
|
||||
// private static float load = 1.0f;
|
||||
// private static int loadCount = 0;
|
||||
|
||||
static synchronized void release(VertexPoolItem items) {
|
||||
public static synchronized void release(VertexPoolItem items) {
|
||||
if (items == null)
|
||||
return;
|
||||
|
||||
|
||||
@@ -15,12 +15,14 @@
|
||||
package org.oscim.renderer.layer;
|
||||
|
||||
public class VertexPoolItem {
|
||||
final short[] vertices = new short[SIZE];
|
||||
public final short[] vertices = new short[SIZE];
|
||||
|
||||
int used;
|
||||
VertexPoolItem next;
|
||||
public int used;
|
||||
public VertexPoolItem next;
|
||||
|
||||
// must be multiple of 4 (expected in LineLayer/PolygonLayer)
|
||||
// and 24 (Texture Layer)
|
||||
static final int SIZE = 360;
|
||||
// must be multiple of
|
||||
// 4 (LineLayer/PolygonLayer),
|
||||
// 6 (TexLineLayer)
|
||||
// 24 (TextureLayer)
|
||||
public static final int SIZE = 360;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user