formatting

This commit is contained in:
Hannes Janetzek
2013-02-04 20:14:58 +01:00
parent 303e0cb4ce
commit f2b7a9fdf8
72 changed files with 403 additions and 240 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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