Hannes Janetzek
7145b067a0
fix wrap, if needed. this was wrong
2013-10-09 01:55:58 +02:00
Hannes Janetzek
491e41becc
rename Tile.TILE_SIZE to Tile.SIZE, while I'm at refactoring
2013-10-09 01:55:58 +02:00
Hannes Janetzek
8e01dce85e
-use absolute x/y position and scale in MapPosition
...
- scale calculations look much nicer now, better always
use 'double' unless you are sure about precision required
- finally got rid of zoomLevel relative coordinates
- cleanup MapPosition and MercatorProjection API functions
2013-10-09 01:55:58 +02:00
Hannes Janetzek
a6a729244f
added MapLensOverlay
2013-10-09 01:55:58 +02:00
Hannes Janetzek
a87a1b761c
testing tile overlay
2013-10-09 01:55:58 +02:00
Hannes Janetzek
d3c31199f1
adapt building height to ground resolution
2013-10-09 01:55:58 +02:00
Hannes Janetzek
1d2fea48cc
5cm height step should suffice
2013-10-09 01:55:58 +02:00
Hannes Janetzek
118c74e810
use building heigh in cm. TODO need to match ground resolution
2013-10-09 01:55:58 +02:00
Hannes Janetzek
c280bbaf50
workaround issue with clipped tiles when scale is greater 2 on zoom-level 17
2013-10-09 01:55:58 +02:00
Hannes Janetzek
93a723af3c
refactor scale/translate of screen to map coordinates for tile visibility calulation
...
cleanups
2013-10-09 01:55:58 +02:00
Hannes Janetzek
bac46ac6e2
make building height consistent, at least independent of aspect ratio
2013-10-09 01:55:58 +02:00
Hannes Janetzek
b7ca00ae8f
use WayData container to pass geometry and tags to TileGenerator
2013-10-09 01:55:58 +02:00
Hannes Janetzek
bef8e125fb
MapPosition: use int to represent zoomLevel
...
add MapPosition.setFromLatLon utility
2013-10-09 01:55:58 +02:00
Hannes Janetzek
a818e2f062
use MapPosition.copy(other)
2013-10-09 01:55:57 +02:00
Hannes Janetzek
8c8750a833
add GeometryBuffer class to pass data from MapDatabase to TileGenerator
2013-10-09 01:55:57 +02:00
Hannes Janetzek
0b7edab572
fix debug renderer
2013-10-09 01:55:57 +02:00
Hannes Janetzek
45b8bf75de
cleanups
2013-10-09 01:55:57 +02:00
Hannes Janetzek
654ca7c5b8
merge updateVisibleList into updateMap
2013-10-09 01:55:57 +02:00
Hannes Janetzek
cf1eb4ada5
extract compileTileLayers function
2013-10-09 01:55:57 +02:00
Hannes Janetzek
77947ea1ac
rename BaseMap -> TileRenderer
2013-10-09 01:55:57 +02:00
Hannes Janetzek
f9be7f1cd8
rename libtriangle-jni.so -> libtriangle.so
2013-10-09 01:55:57 +02:00
Hannes Janetzek
3f4a8980a9
no need to 'flatten' projection anymore, depth test is only used for drawing clip rectangles
2013-10-09 01:55:57 +02:00
Hannes Janetzek
f440920a4b
cleanups
2013-10-09 01:55:57 +02:00
Hannes Janetzek
b0c02e0c56
use same quad indices in Texture- and LineTexRenderer
2013-10-09 01:55:57 +02:00
Hannes Janetzek
22441bf527
avoid copy - pin coordinate buffer for triangulation
2013-10-09 01:55:57 +02:00
Hannes Janetzek
3e6ac7d5d4
add and use utility to set Int color as uniform
2013-10-09 01:55:56 +02:00
Hannes Janetzek
f262efee7f
Use native Matrix4 instead of float[16]
2013-10-09 01:55:56 +02:00
Hannes Janetzek
2b47b92771
more contrast for buildings
2013-10-09 01:55:56 +02:00
Hannes Janetzek
5230aee091
avoid zoom-level relative calculation
2013-10-09 01:55:56 +02:00
Hannes Janetzek
65e4845fef
grow ExtrusionLayer compiler buffer if necessary
2013-10-09 01:55:55 +02:00
Hannes Janetzek
9b54d81dab
mv TextOverlayExp to TextOverlay
2013-10-09 01:55:55 +02:00
Hannes Janetzek
82eb60e2a9
cleanups
2013-10-09 01:55:55 +02:00
Hannes Janetzek
fcc53630a6
cleanups + comments
2013-10-09 01:55:55 +02:00
Hannes Janetzek
97828c6f8b
shorter shader handle names
2013-10-09 01:55:55 +02:00
Hannes Janetzek
c0a08c11c8
rename COORD_MULTIPLIER to COORD_SCALE
2013-10-09 01:55:55 +02:00
Hannes Janetzek
b3b392bdb8
update comments
2013-10-09 01:55:55 +02:00
Hannes Janetzek
4d346ba2ae
set mCurLayer null on clear
2013-10-09 01:55:54 +02:00
Hannes Janetzek
b82cfbb95e
limit maximum scanlines to bbox
2013-10-09 01:55:54 +02:00
Hannes Janetzek
67529446a4
cleanups + notes
2013-10-09 01:55:54 +02:00
Hannes Janetzek
716fbccf36
add utility function to get tile by index
2013-10-09 01:55:54 +02:00
Hannes Janetzek
a581996f25
On options change set 'clearMap' flag instead of direct clearAndRedraw
2013-10-09 01:55:54 +02:00
Hannes Janetzek
ecedccb265
fix possible invalid vbo reads
...
- make sure there is an additional vertex for interleaving
2013-10-09 01:55:54 +02:00
Hannes Janetzek
b328d769a5
check gl errors, cleanups
2013-10-09 01:55:54 +02:00
Hannes Janetzek
00f1fe9438
cleanups
2013-10-09 01:55:54 +02:00
Hannes Janetzek
2843c49ced
fix stipple width
2013-10-09 01:55:54 +02:00
Hannes Janetzek
54d3fe332b
cleanups
2013-10-09 01:55:54 +02:00
Hannes Janetzek
aaafe0cddc
use procedural texture for regular stipple
2013-10-09 01:55:54 +02:00
Hannes Janetzek
d91ad535a2
start to make line stipple themeable
2013-10-09 01:55:54 +02:00
Hannes Janetzek
f658b6fbcf
fix text AABB
2013-10-09 01:55:54 +02:00
Hannes Janetzek
4faaf25dfa
use Layer.width
2013-10-09 01:55:54 +02:00