add beginnings of BuildingOverlay

This commit is contained in:
Hannes Janetzek
2013-01-01 16:04:30 +01:00
parent f761be1999
commit ac63a4cae1
4 changed files with 581 additions and 8 deletions

View File

@@ -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;

View File

@@ -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;
}