Selectable renderer implementation (#1247)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -14,9 +14,12 @@
|
||||
namespace mbgl {
|
||||
|
||||
namespace gfx {
|
||||
#if MLN_DRAWABLE_RENDERER
|
||||
class Texture2D;
|
||||
class UploadPass;
|
||||
using Texture2DPtr = std::shared_ptr<Texture2D>;
|
||||
#endif
|
||||
|
||||
class UploadPass;
|
||||
} // namespace gfx
|
||||
|
||||
class Bucket;
|
||||
@@ -59,6 +62,7 @@ public:
|
||||
const LayerRenderData* getLayerRenderData(const style::Layer::Impl&) const;
|
||||
std::optional<ImagePosition> getPattern(const std::string& pattern) const;
|
||||
|
||||
#if MLN_DRAWABLE_RENDERER
|
||||
bool hasGlyphAtlasTexture() const;
|
||||
const gfx::Texture2DPtr& getGlyphAtlasTexture() const;
|
||||
gfx::TextureBinding getGlyphAtlasTextureBinding(gfx::TextureFilterType) const;
|
||||
@@ -68,6 +72,13 @@ public:
|
||||
gfx::TextureBinding getIconAtlasTextureBinding(gfx::TextureFilterType) const;
|
||||
|
||||
const std::shared_ptr<TileAtlasTextures>& getAtlasTextures() const;
|
||||
#else
|
||||
gfx::TextureBinding getGlyphAtlasTextureBinding(gfx::TextureFilterType) const;
|
||||
gfx::TextureBinding getIconAtlasTextureBinding(gfx::TextureFilterType) const;
|
||||
|
||||
const gfx::Texture* getGlyphAtlasTexture() const;
|
||||
const gfx::Texture* getIconAtlasTexture() const;
|
||||
#endif
|
||||
|
||||
void upload(gfx::UploadPass&) const;
|
||||
void prepare(const SourcePrepareParameters&);
|
||||
|
||||
Reference in New Issue
Block a user