diff options
Diffstat (limited to 'src/mbgl/renderer/render_tile.cpp')
-rw-r--r-- | src/mbgl/renderer/render_tile.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/mbgl/renderer/render_tile.cpp b/src/mbgl/renderer/render_tile.cpp index 3a2c2de5e3..a640a96776 100644 --- a/src/mbgl/renderer/render_tile.cpp +++ b/src/mbgl/renderer/render_tile.cpp @@ -8,6 +8,7 @@ #include <mbgl/map/transform_state.hpp> #include <mbgl/gfx/cull_face_mode.hpp> #include <mbgl/tile/tile.hpp> +#include <mbgl/tile/geometry_tile.hpp> #include <mbgl/util/math.hpp> namespace mbgl { @@ -60,6 +61,37 @@ mat4 RenderTile::translatedClipMatrix(const std::array<float, 2>& translation, return translateVtxMatrix(nearClippedMatrix, translation, anchor, state, false); } +const OverscaledTileID& RenderTile::getOverscaledTileID() const { return tile.id; } +bool RenderTile::holdForFade() const { return tile.holdForFade(); } + +Bucket* RenderTile::getBucket(const style::Layer::Impl& impl) const { + return tile.getBucket(impl); +} + +const LayerRenderData* RenderTile::getLayerRenderData(const style::Layer::Impl& impl) const { + return tile.getLayerRenderData(impl); +} + +optional<ImagePosition> RenderTile::getPattern(const std::string& pattern) const { + assert(tile.kind == Tile::Kind::Geometry); + return static_cast<const GeometryTile&>(tile).getPattern(pattern); +} + +const optional<gfx::Texture>& RenderTile::getGlyphAtlasTexture() const { + assert(tile.kind == Tile::Kind::Geometry); + return static_cast<const GeometryTile&>(tile).glyphAtlasTexture; +} + +const optional<gfx::Texture>& RenderTile::getIconAtlasTexture() const { + assert(tile.kind == Tile::Kind::Geometry); + return static_cast<const GeometryTile&>(tile).iconAtlasTexture; +} + +std::shared_ptr<FeatureIndex> RenderTile::getFeatureIndex() const { + assert(tile.kind == Tile::Kind::Geometry); + return static_cast<const GeometryTile&>(tile).getFeatureIndex(); +} + void RenderTile::setMask(TileMask&& mask) { tile.setMask(std::move(mask)); } |