summaryrefslogtreecommitdiff
path: root/include/mbgl/style/light.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/light.hpp')
-rw-r--r--include/mbgl/style/light.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/mbgl/style/light.hpp b/include/mbgl/style/light.hpp
index 7942d0d237..8212a58dcc 100644
--- a/include/mbgl/style/light.hpp
+++ b/include/mbgl/style/light.hpp
@@ -5,15 +5,19 @@
#include <mbgl/style/transition_options.hpp>
#include <mbgl/style/types.hpp>
-namespace mbgl {
-
-class RenderLight;
+#include <memory>
+namespace mbgl {
namespace style {
class Light {
public:
+ class Impl;
+
+ Light();
+ ~Light();
+
static LightAnchorType getDefaultAnchor();
PropertyValue<LightAnchorType> getAnchor() const;
void setAnchor(PropertyValue<LightAnchorType>);
@@ -38,10 +42,7 @@ public:
void setIntensityTransition(const TransitionOptions&);
TransitionOptions getIntensityTransition() const;
-private:
- IndexedTuple<LightProperties, LightProperties> properties;
-
- friend class mbgl::RenderLight;
+ std::shared_ptr<Impl> impl;
};
} // namespace style