formatting
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012, 2013 OpenScienceMap
|
||||
* Copyright 2012, 2013 OpenScienceMap
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it under the
|
||||
* terms of the GNU Lesser General Public License as published by the Free Software
|
||||
@@ -37,7 +37,7 @@ public abstract class Layer {
|
||||
|
||||
// in case of line and polygon layer:
|
||||
// - number of VERTICES offset for this layertype in VBO
|
||||
// otherwise:
|
||||
// otherwise:
|
||||
// - offset in byte in VBO
|
||||
public int offset;
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ public final class LineLayer extends Layer {
|
||||
/**
|
||||
* line extrusion is based on code from GLMap
|
||||
* (https://github.com/olofsj/GLMap/)
|
||||
*
|
||||
* @param points
|
||||
* array of points as x,y pairs
|
||||
* @param index
|
||||
|
||||
@@ -48,7 +48,7 @@ public final class SymbolLayer extends TextureLayer {
|
||||
|
||||
for (SymbolItem it = symbols; it != null; it = it.next) {
|
||||
if (it.bitmap == item.bitmap) {
|
||||
// insert after same bitmap
|
||||
// insert after same bitmap
|
||||
item.next = it.next;
|
||||
it.next = item;
|
||||
return;
|
||||
|
||||
@@ -51,7 +51,7 @@ public class TextItem {
|
||||
// in.next = ti.next;
|
||||
// ti.next = in;
|
||||
// }
|
||||
//
|
||||
//
|
||||
// TextItem t = ti;
|
||||
// while (t.next != null)
|
||||
// t = t.next;
|
||||
@@ -68,7 +68,7 @@ public class TextItem {
|
||||
while (ti != null) {
|
||||
TextItem next = ti.next;
|
||||
|
||||
// drop references
|
||||
// drop references
|
||||
ti.string = null;
|
||||
ti.text = null;
|
||||
ti.n1 = null;
|
||||
@@ -83,7 +83,7 @@ public class TextItem {
|
||||
TextItem next = ti.next;
|
||||
ti.next = pool;
|
||||
|
||||
// drop references
|
||||
// drop references
|
||||
ti.string = null;
|
||||
ti.text = null;
|
||||
ti.n1 = null;
|
||||
|
||||
@@ -91,7 +91,7 @@ public final class TextLayer extends TextureLayer {
|
||||
it = it.next;
|
||||
|
||||
// unify duplicate string :)
|
||||
// Note: this is required for 'packing test' in prepare to work!
|
||||
// Note: this is required for 'packing test' in prepare to work!
|
||||
if (item.string != it.string && item.string.equals(it.string))
|
||||
item.string = it.string;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ public class VertexPoolItem {
|
||||
public int used;
|
||||
public VertexPoolItem next;
|
||||
|
||||
// must be multiple of
|
||||
// must be multiple of
|
||||
// 4 (LineLayer/PolygonLayer),
|
||||
// 6 (TexLineLayer)
|
||||
// 24 (TextureLayer)
|
||||
|
||||
Reference in New Issue
Block a user