summaryrefslogtreecommitdiff
path: root/include/mbgl/renderer/renderer_state.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/renderer/renderer_state.hpp')
-rw-r--r--include/mbgl/renderer/renderer_state.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/mbgl/renderer/renderer_state.hpp b/include/mbgl/renderer/renderer_state.hpp
index 1b300c190b..27985ae996 100644
--- a/include/mbgl/renderer/renderer_state.hpp
+++ b/include/mbgl/renderer/renderer_state.hpp
@@ -8,7 +8,7 @@ namespace mbgl {
class UpdateParameters;
/**
- * RendererState acts as a Memento-like object that is able to extract data out of UpdateParameters (an opaque object
+ * RendererState acts as a Memento object that is able to extract data out of UpdateParameters (an opaque object
* from the public API perspective).
*/
class RendererState {
@@ -17,6 +17,14 @@ public:
// Obtains a CameraOptions out of a given UpdateParameters object.
static CameraOptions getCameraOptions(UpdateParameters&, const EdgeInsets& = {});
+ // Returns whether an image with the given ID exists from a given UpdateParamters object.
+ static bool hasImage(UpdateParameters&, const std::string& id);
+
+ // Returns whether a layer with the given ID exists from a given UpdateParamters object.
+ static bool hasLayer(UpdateParameters&, const std::string& id);
+
+ // Returns whether a source with the given ID exists from a given UpdateParamters object.
+ static bool hasSource(UpdateParameters&, const std::string& id);
};
} // namespace mbgl