Commit Graph
59 Commits
Author SHA1 Message Date
Hannes Janetzek cccd053925 start WKB2GeomBuffer reader 2013-10-09 01:56:01 +02:00
Hannes Janetzek ae993eccce added BitmapTileLayer, and TileSource interface from mapsforge 2013-10-09 01:56:01 +02:00
Hannes Janetzek 82227900d8 move ScanBox to utils 2013-10-09 01:56:00 +02:00
Hannes Janetzek 1c779f2f60 add generic quadtree index for tile cache 2013-10-09 01:56:00 +02:00
Hannes Janetzek fde9109695 add offset parameter to pointInPoly 2013-10-09 01:56:00 +02:00
Hannes Janetzek a1e9efbe5a added Inlist.prependRelative 2013-10-09 01:55:59 +02:00
Hannes Janetzek 9c3c860da8 cleanups 2013-10-09 01:55:59 +02:00
Hannes Janetzek 129a780c41 - more work on generic pools
- generic inlist
2013-10-09 01:55:59 +02:00
Hannes Janetzek ab56cc4b18 pooled items now extend pool.Inlist and using generic pool.SyncPool 2013-10-09 01:55:59 +02:00
Hannes Janetzek 76f762d862 hack-- 2013-10-09 01:55:57 +02:00
Hannes Janetzek 45b8bf75de cleanups 2013-10-09 01:55:57 +02:00
Hannes Janetzek a1604b3b33 fix warning, cleanups 2013-10-09 01:55:57 +02:00
Hannes Janetzek 38e2ac110d - use self-made fling
- add utilities from libgdx
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 efaafce08c use PointF instead of android int Point 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 c14d101aef - allow bbox zoom to scale to MAX_END_SCALE
- use FastMath.clamp
2013-10-09 01:55:56 +02:00
Hannes Janetzek 615e91856f MULTIPLIER > SCALE 2013-10-09 01:55:55 +02:00
Hannes Janetzek e53179eb7b use linear filter for stipple texture 2013-10-09 01:55:54 +02:00
Hannes Janetzek 67529446a4 cleanups + notes 2013-10-09 01:55:54 +02:00
Hannes Janetzek b440155e83 fix clamp parameter 2013-10-09 01:55:54 +02:00
Hannes Janetzek 3e42886097 add color saturation utility 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 7cf4ca27f3 - add initial version of line stipple renderer
- 'vbo' moved to 'Layers'
2013-10-09 01:55:54 +02:00
Hannes Janetzek b43736a047 reuse Labels and OBB2Ds, cleanups 2013-10-09 01:55:54 +02:00
Hannes Janetzek 45bb326258 update copyright 2013-10-09 01:55:53 +02:00
Hannes Janetzek 34bffcc15f labeling testing 2013-10-09 01:55:53 +02:00
Hannes Janetzek 55030c1166 refactor: dont pass matrices with MapPosition -> use GLRender.Matrices 2013-10-09 01:55:53 +02:00
Hannes Janetzek 9fba1e21b8 add point-in-poly function 2013-10-09 01:55:53 +02:00
Hannes Janetzek fab415057e simplify + cleanups 2013-10-09 01:55:53 +02:00
Hannes Janetzek 27a51708fb add Intersection test for 2D OBBs 2013-10-09 01:55:53 +02:00
Hannes Janetzek c64e0fe5b0 add ear-clip triangulator, might be more efficient for simple polys 2013-10-09 01:55:53 +02:00
Hannes Janetzek 32ba8bbae0 use faster Math.abs utility, cleanups, comments 2013-10-09 01:55:53 +02:00
Hannes Janetzek b47a7787cd more utilities, not used 2013-10-09 01:55:52 +02:00
Hannes Janetzek fada95f380 cleanups + comments 2013-10-09 01:55:52 +02:00
Hannes Janetzek f2b7a9fdf8 formatting 2013-10-09 01:55:52 +02:00
Hannes Janetzek a95e7d6f31 try to fix occasional flickering. only seen on nexus with PowerVR
-> clear stencil region by drawing a quad instead of using glClear(stencil) for each tile
2013-10-09 01:55:51 +02:00
Hannes Janetzek 2b68d93891 check range in blendColors 2013-10-09 01:55:51 +02:00
Hannes Janetzek ac4c3846ba add point line distance utility functions 2013-10-09 01:55:50 +02:00
Hannes Janetzek 235e001a82 add 'min-size' option to line renderinstruction, when size is less no outline will be drawn 2013-10-09 01:55:49 +02:00
Hannes Janetzek 6a34e478f5 improve text placement a little 2013-10-09 01:55:49 +02:00
Hannes Janetzek 007ab2e3bf fix z-fighting on overlapping buildings:
- modify projection matrix to add offset, glPolygonOffset is not that reliable
2013-10-09 01:55:48 +02:00
Hannes Janetzek 4acd9a492f finally got that z-value for un-projection right (=
- add more matrix utilities
2013-10-09 01:55:48 +02:00
Hannes Janetzek bfe8cf2889 use setTileMatrix utility function 2013-10-09 01:55:48 +02:00
Hannes Janetzek 82eb7e4973 more line intersection utilities 2013-10-09 01:55:47 +02:00
Hannes Janetzek d0ad2f3bd4 - LineClipper added start(x0,y0), clipNext(x1,y1) 'state' clipping mode
- use vec4 array for extrusion colors -> set color only once for all tiles
- use full range for direction vector in extrusion vertex
2013-10-09 01:55:47 +02:00
Hannes Janetzek c01252f249 - fix roof triagulation for polygons with holes
- omit indices for outline outside tile boundaries
2013-10-09 01:52:19 +02:00
Hannes Janetzek c9137aa790 pack colors to array before passing to gl 2013-10-09 01:47:43 +02:00
Hannes Janetzek 695c1532d6 a point, with floats 2013-10-09 01:40:21 +02:00