docs + cleanups

This commit is contained in:
Hannes Janetzek
2013-02-11 13:49:09 +01:00
parent c1643850ce
commit 0609639ef3
5 changed files with 33 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012 Hannes Janetzek
* 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 License as published by the Free Software
@@ -18,17 +18,14 @@ import org.oscim.generator.JobTile;
import org.oscim.renderer.layer.Layers;
import org.oscim.renderer.layer.TextItem;
/**
* Extends Tile class for concurrent use in TileManager,
* TileGenerator and GLRenderer threads.
*
* @author Hannes Janetzek
*/
public final class MapTile extends JobTile {
/**
* VBO holds all vertex data to draw lines and polygons
* layout:
* 16 bytes fill coordinates,
* n bytes polygon vertices,
* m bytes lines vertices
*/
BufferObject vbo;
/**
* Tile data set by TileGenerator.
*/
@@ -40,6 +37,15 @@ public final class MapTile extends JobTile {
*/
public boolean isVisible;
/**
* VBO holds all vertex data to draw lines and polygons when
* 'layers' are compiled. layout:
* 16 bytes fill coordinates,
* n bytes polygon vertices,
* m bytes lines vertices
*/
BufferObject vbo;
/**
* Pointer to access relatives in QuadTree
*/
@@ -80,10 +86,6 @@ public final class MapTile extends JobTile {
super(tileX, tileY, zoomLevel);
}
boolean isActive() {
return state != 0;
}
/**
* @return true if tile could be referenced by another thread
*/