Implement dynamic texture atlas (#3198)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart@emeel.net> Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <mbgl/annotation/annotation_manager.hpp>
|
||||
#include <mbgl/renderer/image_manager.hpp>
|
||||
#include <mbgl/text/glyph_manager.hpp>
|
||||
#include <mbgl/gfx/dynamic_texture_atlas.hpp>
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -29,6 +30,8 @@ public:
|
||||
AnnotationManager annotationManager{style};
|
||||
std::shared_ptr<ImageManager> imageManager = std::make_shared<ImageManager>();
|
||||
std::shared_ptr<GlyphManager> glyphManager = std::make_shared<GlyphManager>();
|
||||
gfx::DynamicTextureAtlasPtr dynamicTextureAtlas;
|
||||
|
||||
TileParameters tileParameters;
|
||||
style::Style style;
|
||||
|
||||
@@ -42,7 +45,8 @@ public:
|
||||
imageManager,
|
||||
glyphManager,
|
||||
0,
|
||||
{Scheduler::GetBackground(), uniqueID}},
|
||||
{Scheduler::GetBackground(), uniqueID},
|
||||
dynamicTextureAtlas},
|
||||
style{fileSource, 1, tileParameters.threadPool} {}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user