[core] Per-bucket glyph atlases

This commit is contained in:
John Firebaugh
2017-06-01 10:30:49 -07:00
parent b201a7900f
commit 92252849c1
36 changed files with 409 additions and 474 deletions

View File

@@ -10,7 +10,7 @@
#include <mbgl/renderer/tile_parameters.hpp>
#include <mbgl/renderer/buckets/raster_bucket.hpp>
#include <mbgl/sprite/sprite_atlas.hpp>
#include <mbgl/text/glyph_atlas.hpp>
#include <mbgl/text/glyph_manager.hpp>
using namespace mbgl;
@@ -22,7 +22,7 @@ public:
ThreadPool threadPool { 1 };
AnnotationManager annotationManager;
SpriteAtlas spriteAtlas;
GlyphAtlas glyphAtlas { { 512, 512, }, fileSource };
GlyphManager glyphManager { fileSource };
Tileset tileset { { "https://example.com" }, { 0, 22 }, "none" };
TileParameters tileParameters {
@@ -34,7 +34,7 @@ public:
MapMode::Continuous,
annotationManager,
spriteAtlas,
glyphAtlas
glyphManager
};
};