Konstantin Käfer
5bf52bfcd7
fix compile on ios
2014-05-22 12:28:19 +02:00
Konstantin Käfer
bb2cda34a7
make sure we're not calling functions that aren't threadsafe
2014-05-22 12:12:19 +02:00
Konstantin Käfer
ab4bc4ae30
add vec2 * mat4 multiplication
2014-05-21 19:23:20 +02:00
Konstantin Käfer
53a6992728
fix alpha blending + add depth/stencil buffers
2014-05-21 18:34:41 +02:00
Konstantin Käfer
16a79b42ca
show tile parse warnings
2014-05-21 14:18:25 +02:00
Konstantin Käfer
834ef2eee8
don't require a style for composited layers
2014-05-21 13:40:59 +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
238fe86571
partially revert 6136ab6d21
...
background: we are doing separate opaque/translucent passes per composite layer
and then we're compositing them in the translucent phase
2014-05-21 10:53:40 +02:00
Konstantin Käfer
017145f052
show style parse warning if the flag is set
2014-05-21 10:53:40 +02:00
Konstantin Käfer
575491e65c
make sure we also parse classes for nested layers
2014-05-21 10:53:40 +02:00
Justin R. Miller
550e381e70
name text halo properties like others
2014-05-20 11:26:52 -07:00
Eden Halperin
d0b885694d
fix labels
2014-05-19 15:29:56 -07:00
Ansis Brammanis
7547beadd3
add includes
2014-05-19 17:39:51 -04:00
Konstantin Käfer
a33d334169
incorporate the color and draw circle dots if we don't have an icon
...
Conflicts:
bin/style.js
2014-05-19 16:20:51 +02:00
Konstantin Käfer
7d73d158ba
incorporate the color and draw circle dots if we don't have an icon
2014-05-19 16:19:51 +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
f848868c16
fix texture binding
2014-05-19 14:18:29 +02:00
Konstantin Käfer
898c6d6714
fix for retina screens
2014-05-19 11:13:22 +02:00
Konstantin Käfer
13575330f7
use sprite atlas
2014-05-19 10:48:36 +02:00
Konstantin Käfer
24bd0bb667
include header
2014-05-19 10:48:36 +02:00
Konstantin Käfer
27f8ed29e4
encode icon texture coordinate in buffer so we can render all pois with 1 draw call
2014-05-19 10:48:36 +02:00
Ansis Brammanis
4b2b19ccd3
use separate trees for horizontal and curved labels
...
from e4186926ed38fc1dc232c70098154251a9019669
2014-05-16 16:06:24 -04:00
Konstantin Käfer
4c99014a13
don't use fractional texture coordiantes in the shader
2014-05-15 15:16:34 +02:00
Konstantin Käfer
27b695b068
use explicit constructors
2014-05-15 14:56:06 +02:00
Konstantin Käfer
fda64b67af
rename point => icon
2014-05-15 14:51:02 +02:00
Konstantin Käfer
aeae6248ad
simplify point shader in preparation for #196
2014-05-15 14:27:49 +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
afc54b7956
add translate-anchor for fills
2014-05-14 16:51:27 +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
790b6cbdb3
add strokeBlur property (default 1.0, larger values blur more) to achieve a gradient effect
...
fixes #194
2014-05-14 15:27:49 +02:00
Konstantin Käfer
a812f37c60
make sure to premultiply the colors during stylesheet parsing
...
fixes #193
2014-05-14 15:05:59 +02:00
Konstantin Käfer
2d938f2ec2
make sure to premultiply the colors during stylesheet parsing
...
fixes #193
2014-05-14 15:04:33 +02:00
Konstantin Käfer
c93af5cfb3
Merge branch 'master' into outdoors-style
2014-05-14 13:44:49 +02:00
Konstantin Käfer
ac9a678ce5
fix lock initialization
...
background: for non-debug builds, assert() gets compiled away, so the locks are not initialized
2014-05-14 13:41:55 +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
d97e8899ae
add translate-anchor property
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
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
b3a1e35f44
add translate-anchor property
2014-05-13 18:41: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
5135c59b71
Merge branch 'master' into outdoors-style
...
Conflicts:
bin/style.js
src/map/map.cpp
2014-05-13 16:18:52 +02:00
Konstantin Käfer
b096373b71
abort rendering early if the style is disabled
...
refs #184
2014-05-13 15:15:54 +02:00
Konstantin Käfer
ab71db336c
move tiles to std::map for faster lookups
2014-05-13 12:20:59 +02:00
Konstantin Käfer
d8fa9aa322
move weak_ptr list of tile_data objects to a map for faster lookups
2014-05-13 12:01:29 +02:00
Justin R. Miller
654520ea34
Revert "refs #166 : fix for std::stoll et al. not handling strings"
...
This reverts commit bc29ed5a9c .
2014-05-12 17:14:28 -07:00
Justin R. Miller
23382f9267
Revert "refs #166 : fix for std::stoll et al. not handling strings"
...
This reverts commit 54d5f474c8 .
2014-05-12 17:09:06 -07:00
Justin R. Miller
54d5f474c8
refs #166 : fix for std::stoll et al. not handling strings
2014-05-12 14:07:07 -07:00
Justin R. Miller
bc29ed5a9c
refs #166 : fix for std::stoll et al. not handling strings
2014-05-12 14:00:10 -07:00