aboutsummaryrefslogtreecommitdiffstats
path: root/src/mbgl/style/paint_property.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/paint_property.hpp')
-rw-r--r--src/mbgl/style/paint_property.hpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/mbgl/style/paint_property.hpp b/src/mbgl/style/paint_property.hpp
index 195eb645a..eeda482b2 100644
--- a/src/mbgl/style/paint_property.hpp
+++ b/src/mbgl/style/paint_property.hpp
@@ -34,7 +34,22 @@ public:
using Type = T;
static constexpr bool IsDataDriven = true;
- using Attribute = A;
+ using Attributes = gl::Attributes<A>;
+ using Uniform = U;
+};
+
+template <class T, class A1, class A2, class U>
+class CrossFadedDataDrivenPaintProperty {
+public:
+ using TransitionableType = Transitionable<DataDrivenPropertyValue<T>>;
+ using UnevaluatedType = Transitioning<DataDrivenPropertyValue<T>>;
+ // need CrossFadedDataDrivenPropertyEvaluator here or maybe can extend the existing CrossFadedPropertyEvaluator?
+ using EvaluatorType = DataDrivenPropertyEvaluator<T>;
+ using PossiblyEvaluatedType = PossiblyEvaluatedPropertyValue<Faded<T>>;
+ using Type = T;
+ static constexpr bool IsDataDriven = true;
+
+ using Attributes = gl::Attributes<A1, A2>;
using Uniform = U;
};