diff options
Diffstat (limited to 'platform/glfw/glfw_view.hpp')
-rw-r--r-- | platform/glfw/glfw_view.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/glfw/glfw_view.hpp b/platform/glfw/glfw_view.hpp index e9867f14da..2fad6fe247 100644 --- a/platform/glfw/glfw_view.hpp +++ b/platform/glfw/glfw_view.hpp @@ -1,6 +1,7 @@ #pragma once #include <mbgl/map/map.hpp> +#include <mbgl/map/map_snapshotter.hpp> #include <mbgl/util/geometry.hpp> #include <mbgl/util/optional.hpp> #include <mbgl/util/run_loop.hpp> @@ -18,7 +19,7 @@ class RendererBackend; class GLFWView : public mbgl::MapObserver { public: - GLFWView(bool fullscreen, bool benchmark); + GLFWView(bool fullscreen, bool benchmark, const mbgl::ResourceOptions &options); ~GLFWView() override; float getPixelRatio() const; @@ -94,6 +95,8 @@ private: void clearAnnotations(); void popAnnotation(); + void makeSnapshot(bool withOverlay = false); + mbgl::AnnotationIDs annotationIDs; std::vector<std::string> spriteIDs; @@ -141,4 +144,6 @@ private: GLFWwindow *window = nullptr; bool dirty = false; mbgl::optional<std::string> featureID; + std::unique_ptr<mbgl::MapSnapshotter> snapshotter; + mbgl::ResourceOptions mapResourceOptions; }; |