Konstantin Käfer
e304f6629f
only change pass parameters if we actually need to
2014-05-28 09:47:55 +02:00
Konstantin Käfer
889ef68b5b
first draft at blurring
2014-05-23 18:30:49 +02:00
Konstantin Käfer
67ab9ff6f5
add cleanup call for destroying framebuffers
2014-05-22 12:41:17 +02:00
Konstantin Käfer
53a6992728
fix alpha blending + add depth/stencil buffers
2014-05-21 18:34:41 +02:00
Konstantin Käfer
13939b26d9
first shot at composited blending
...
still missing:
- stencil+depth mask
- alpha compositing
2014-05-21 10:55:09 +02:00
Konstantin Käfer
9bb0146875
Merge branch 'master' into outdoors-style
...
Conflicts:
bin/style.js
2014-05-19 15:52:42 +02:00
Konstantin Käfer
01183a0a19
fix remaining cases of point => icon
2014-05-15 18:09:00 +02:00
Konstantin Käfer
fda64b67af
rename point => icon
2014-05-15 14:51:02 +02:00
Konstantin Käfer
51f523ec14
Merge branch 'master' into outdoors-style
...
Conflicts:
bin/style.js
include/llmr/map/transform.hpp
src/renderer/painter.cpp
src/text/placement.cpp
2014-05-14 17:42:10 +02:00
Konstantin Käfer
a9d559fe51
return refs to avoid matrix allocation/deallocation for untranslated layers
...
refs #189
2014-05-14 17:21:51 +02:00
Konstantin Käfer
a27f8798ff
add translate-anchor: viewport to lines + points
...
refs #189
2014-05-14 17:17:47 +02:00
Konstantin Käfer
b167a79c22
always use std:: namespace for math functions
...
fixes #201
2014-05-14 16:40:24 +02:00
Konstantin Käfer
24617da3ff
don't factor in the pixelratio to achieve the same look
...
refs #189
2014-05-14 15:06:31 +02:00
Konstantin Käfer
22f70f9569
don't factor in the pixelratio to achieve the same look
...
refs #189
2014-05-14 14:52:37 +02:00
Konstantin Käfer
3514538719
make text layers respect the translate-anchor
...
you can now specify "translate-anchor": "viewport" to have the text translated
in screen coordinates rather than relative to the tile. The default value
remains "translate-anchor": "map"
refs #189
2014-05-14 10:31:57 +02:00
Konstantin Käfer
05a330f347
make translate property zoom independent
...
if you want a zoom-dependent translation, you can use a function
refs #189
2014-05-14 10:31:57 +02:00
Eden Halperin
ee230c1c98
revert pixel ratio multiplier
2014-05-13 16:11:45 -07:00
Eden Halperin
017cf45ee2
new tile endpoint, fix landcover
2014-05-13 16:04:47 -07:00
Konstantin Käfer
c8a3b916b3
make text layers respect the translate-anchor
...
you can now specify "translate-anchor": "viewport" to have the text translated
in screen coordinates rather than relative to the tile. The default value
remains "translate-anchor": "map"
refs #189
2014-05-13 19:02:22 +02:00
Konstantin Käfer
632c5f982c
make translate property zoom independent
...
if you want a zoom-dependent translation, you can use a function
refs #189
2014-05-13 16:48:23 +02:00
Konstantin Käfer
7bfcde4025
split up painter into multiple files
2014-05-13 15:37:45 +02:00
Konstantin Käfer
2b14579986
only paint layer if it has data
...
refs #184
2014-05-12 19:08:59 +02:00
Konstantin Käfer
6ebb4c21f7
clean up gl::group() structure
2014-05-12 18:25:48 +02:00
Konstantin Käfer
6136ab6d21
draw by layer, not by tile
...
This is needed for correctly compositing raster imagery into the map
fixes #122
fixes #157
2014-05-12 17:13:26 +02:00
Konstantin Käfer
0bfd7b0f43
Calculate clip IDs with a huffman prefix tree
...
This changes the clip IDs from sequential to a huffman prefix tree, meaning that
parent tiles share the same prefix with child tiles (but are shorter). This allows
us to use the same checkerboard pattern to draw all tiles.
TODO:
- make sure we're not overflowing the 8 bit limit of the stencil buffer
- draw all checkerboard fields at the same time, with one draw call
- fix raster drawing (fading, clipping)
refs #132
2014-05-09 18:10:28 +02:00
Justin R. Miller
2b9fbb0731
squashed stylequest merge
...
* uses OSM Bright style
* adds dot shader
* adds layer translation
* adds dashed line support
* adds style array parsing
* improves background layer parsing
* improves style constant parsing
* fixes sprite JSON pixel ratio parsing
2014-05-07 10:37:25 -07:00
Konstantin Käfer
52cd9a6561
update framehistory to use nanosecond timestamps
2014-04-30 14:25:57 +02:00
Konstantin Käfer
74768abeb8
make sure we call the sprite load callback
2014-04-30 12:58:38 +02:00
Konstantin Käfer
1216a061d3
move to libuv for the rendering loop
2014-04-30 12:01:26 +02:00
Konstantin Käfer
ddc359f006
add more timers to headless test
2014-04-25 17:04:22 +02:00
Konstantin Käfer
666f593803
use an event loop per map that is not the render thread
2014-04-25 14:26:59 +02:00
Konstantin Käfer
29d6f22e48
make sure we use a sufficiently large rect
...
using this on my 1920x1200 display shows the bottom cut off
2014-04-23 18:00:46 +02:00
Konstantin Käfer
b119aa92d8
remove Settings object from Painter
2014-04-16 16:45:09 -04:00
Konstantin Käfer
797f590cfb
cleanup + unused arguments
2014-04-16 10:55:06 -04:00
Konstantin Käfer
d43044249c
make sure we always have a non-zero viewport
2014-04-15 18:45:51 -04:00
Konstantin Käfer
2e4637ea1d
remove opacity (use color instead)
2014-04-15 18:42:23 -04:00
Konstantin Käfer
3c656d2bf2
add debug markers for easier gl debugging
2014-04-15 14:30:05 -04:00
Konstantin Käfer
f859945e06
fix clipping
2014-04-15 13:22:32 -04:00
Konstantin Käfer
78c10c0701
Merge remote-tracking branch 'remotes/origin/pr/127'
...
Conflicts:
include/llmr/map/map.hpp
src/map/map.cpp
src/platform/platform.cpp
2014-04-15 12:46:19 -04:00
Konstantin Käfer
f18aa61e33
derive from GLKViewController
...
this handles resizing the view/framebuffer much better
fixes #130 , #131 , #133 , #118
2014-04-14 18:50:17 -04:00
Konstantin Käfer
442d9ce4ec
we only need 2px lines here
2014-04-10 14:30:00 -04:00
Konstantin Käfer
06bcab9560
correctly update the map dimensions on rotate
...
refs #37
2014-04-10 14:07:36 -04:00
Konstantin Käfer
eb499e77c1
fix linejoin drawing on retina
2014-04-10 11:49:43 -04:00
Justin R. Miller
e5713f31a6
move to raster buckets & tile parser handling raster decoding
2014-04-09 11:38:42 -07:00
Justin R. Miller
1215f6f1fe
refs #101 : data sources with styling
...
* add second, satellite class to stylesheet
* get rid of tile clipping masks for now
* flesh out raster styling properties
2014-04-04 13:24:11 -07:00
Justin R. Miller
2eca1c419b
add support for background opacity in style
2014-04-02 16:09:31 -07:00
Justin R. Miller
f60a46229d
refs #101 : first cut of basic hacky data sources
2014-04-02 11:07:22 -07:00
Konstantin Käfer
67b1d8df51
fix build by changing to enabled
2014-03-25 13:40:47 +01:00
Konstantin Käfer
166305fb14
change hidden to enabled
...
refs #83
2014-03-25 13:23:51 +01:00
Konstantin Käfer
afe27ed74c
only animate when we need to fade the text
2014-03-24 18:00:03 +01:00