summaryrefslogtreecommitdiff
path: root/platform/glfw/glfw_view.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/glfw/glfw_view.hpp')
-rw-r--r--platform/glfw/glfw_view.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/glfw/glfw_view.hpp b/platform/glfw/glfw_view.hpp
index 9233bddfb9..e9867f14da 100644
--- a/platform/glfw/glfw_view.hpp
+++ b/platform/glfw/glfw_view.hpp
@@ -29,6 +29,8 @@ public:
mbgl::gfx::RendererBackend& getRendererBackend();
+ void setTestDirectory(std::string dir) { testDirectory = std::move(dir); };
+
// Callback called when the user presses the key mapped to style change.
// The expected action is to set a new style, different to the current one.
void setChangeStyleCallback(std::function<void()> callback);
@@ -105,6 +107,8 @@ private:
GLFWRendererFrontend* rendererFrontend = nullptr;
std::unique_ptr<GLFWBackend> backend;
+ std::string testDirectory = ".";
+
bool fullscreen = false;
const bool benchmark = false;
bool tracking = false;