summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2018-10-17 13:38:11 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2018-10-19 12:05:16 +0200
commitea51b11dccdc117c7dc43ffd3b3d0f969f59799f (patch)
treeb46c023ebe457cf0daebdd22abb42c1a4983c92f /include
parentb94be6e68f666410852aebd638782601162809d6 (diff)
downloadqtlocation-mapboxgl-ea51b11dccdc117c7dc43ffd3b3d0f969f59799f.tar.gz
[core] Introduce mbgl::RendererState
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/renderer/renderer_state.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/mbgl/renderer/renderer_state.hpp b/include/mbgl/renderer/renderer_state.hpp
new file mode 100644
index 0000000000..1b300c190b
--- /dev/null
+++ b/include/mbgl/renderer/renderer_state.hpp
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <mbgl/map/camera.hpp>
+#include <mbgl/util/geo.hpp>
+
+namespace mbgl {
+
+class UpdateParameters;
+
+/**
+ * RendererState acts as a Memento-like object that is able to extract data out of UpdateParameters (an opaque object
+ * from the public API perspective).
+ */
+class RendererState {
+public:
+
+ // Obtains a CameraOptions out of a given UpdateParameters object.
+ static CameraOptions getCameraOptions(UpdateParameters&, const EdgeInsets& = {});
+
+};
+
+} // namespace mbgl