summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2015-01-14 20:56:18 -0500
committerAnsis Brammanis <brammanis@gmail.com>2015-01-14 20:56:18 -0500
commit2643a0efc74ac8b623744f399245c8b66c61e04f (patch)
treebc8484612f8a9e9cd250cd89039bc1c5163f3f1c /include
parentc6ca57045fb373d4fd76d1ec228bd35a518d06e8 (diff)
downloadqtlocation-mapboxgl-2643a0efc74ac8b623744f399245c8b66c61e04f.tar.gz
start porting dash lines from js
- switches to dash units that are scaled by line width - adds a lineatlas to store patterns line dashed lines - adds linesdf shader which renders line fill from the lineatlas js: 8e83d76af3bd877eb9639c02e296363e2c0186f8
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 45846170c2..5d1f576586 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -30,6 +30,7 @@ class FileSource;
class View;
class GlyphAtlas;
class SpriteAtlas;
+class LineAtlas;
class Map : private util::noncopyable {
public:
@@ -182,6 +183,7 @@ private:
util::ptr<GlyphStore> glyphStore;
const std::unique_ptr<SpriteAtlas> spriteAtlas;
util::ptr<Sprite> sprite;
+ const std::unique_ptr<LineAtlas> lineAtlas;
util::ptr<TexturePool> texturePool;
const std::unique_ptr<Painter> painter;