summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2018-11-16 13:59:41 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2018-11-19 14:06:21 +0200
commit527851e2aa71c828f013303c827b90aa496cec15 (patch)
treed74f3d1aad5993fa3f51a11c4007fa9955c47393 /include
parent9be6c8b1b77f8fc026caee8a09e0cf28e0781253 (diff)
downloadqtlocation-mapboxgl-527851e2aa71c828f013303c827b90aa496cec15.tar.gz
[core] Add static layer properties to mbgl::style::LayerTypeInfo
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/style/layer.hpp25
1 files changed, 22 insertions, 3 deletions
diff --git a/include/mbgl/style/layer.hpp b/include/mbgl/style/layer.hpp
index 21ed3adbce..5c1b361419 100644
--- a/include/mbgl/style/layer.hpp
+++ b/include/mbgl/style/layer.hpp
@@ -26,11 +26,30 @@ struct LayerTypeInfo {
* @brief contains the layer type as defined in the style specification;
*/
const char* type;
+
+ /**
+ * @brief contains \c Source::Required if the corresponding layer type
+ * requires source. Contains \c Source::NotRequired otherwise.
+ */
+ const enum class Source { Required, NotRequired } source;
+
+ /**
+ * @brief contains \c Pass3D::Required if the corresponding layer type
+ * requires 3D rendering pass. Contains \c Pass3D::NotRequired otherwise.
+ */
+ const enum class Pass3D { Required, NotRequired } pass3d;
+
+ /**
+ * @brief contains \c Layout::Required if the corresponding layer type
+ * requires layouting. * contains \c Layout::NotRequired otherwise.
+ */
+ const enum class Layout { Required, NotRequired } layout;
+
/**
- * @brief contains \c SourceRequired if the corresponding layer type requires source;
- * contains \c SourceNotRequired otherwise.
+ * @brief contains \c Clipping::Required if the corresponding layer type
+ * requires clipping. Contains \c Clipping::NotRequired otherwise.
*/
- const enum { SourceRequired, SourceNotRequired } source;
+ const enum class Clipping { Required, NotRequired } clipping;
};
/**