summaryrefslogtreecommitdiff
path: root/include/mbgl/gl/custom_layer_factory.hpp
diff options
context:
space:
mode:
authorThomas Moenicke <thomas.moenicke@mapbox.com>2020-02-03 19:10:57 +0200
committerGitHub <noreply@github.com>2020-02-03 19:10:57 +0200
commitb64ed754442b894f3914a4191798fbd2f2bc8cd9 (patch)
tree59bb14829d7cdd5f2466dad4cffb74c4d1b80068 /include/mbgl/gl/custom_layer_factory.hpp
parent2e10d3548a8b3aff1f28b9514594c3c14509f084 (diff)
downloadqtlocation-mapboxgl-b64ed754442b894f3914a4191798fbd2f2bc8cd9.tar.gz
[build] Adding a build flag to build without GL if needed (#16120)
* [build] Adding a build flag to build without GL if needed * [build] Moving custom layer to mbgl/gl
Diffstat (limited to 'include/mbgl/gl/custom_layer_factory.hpp')
-rw-r--r--include/mbgl/gl/custom_layer_factory.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/mbgl/gl/custom_layer_factory.hpp b/include/mbgl/gl/custom_layer_factory.hpp
new file mode 100644
index 0000000000..963a3dc2fd
--- /dev/null
+++ b/include/mbgl/gl/custom_layer_factory.hpp
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <mbgl/layermanager/layer_factory.hpp>
+#include <mbgl/style/layer.hpp>
+
+#include <array>
+
+namespace mbgl {
+
+class CustomLayerFactory : public LayerFactory {
+protected:
+ const style::LayerTypeInfo* getTypeInfo() const noexcept final;
+ std::unique_ptr<style::Layer> createLayer(const std::string& id, const style::conversion::Convertible& value) noexcept final;
+ std::unique_ptr<RenderLayer> createRenderLayer(Immutable<style::Layer::Impl>) noexcept final;
+};
+
+} // namespace mbgl