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:
Alex Cristici
2025-05-14 18:38:47 +03:00
committed by GitHub
parent a537956529
commit 8a81444c43
74 changed files with 763 additions and 400 deletions

View File

@@ -11,6 +11,7 @@
#include <mbgl/renderer/buckets/raster_bucket.hpp>
#include <mbgl/renderer/image_manager.hpp>
#include <mbgl/text/glyph_manager.hpp>
#include <mbgl/gfx/dynamic_texture_atlas.hpp>
using namespace mbgl;
@@ -23,6 +24,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;
Tileset tileset{{"https://example.com"}, {0, 22}, "none"};
TileParameters tileParameters;
style::Style style;
@@ -37,7 +40,8 @@ public:
imageManager,
glyphManager,
0,
{Scheduler::GetBackground(), uniqueID}},
{Scheduler::GetBackground(), uniqueID},
dynamicTextureAtlas},
style{fileSource, 1, tileParameters.threadPool} {}
};