From de720f351549ca4ff846c84899082320f6d30d5a Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 5 Sep 2014 14:03:33 -0700 Subject: FrameHistory::getFadeProperties --- include/mbgl/renderer/frame_history.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/mbgl/renderer') diff --git a/include/mbgl/renderer/frame_history.hpp b/include/mbgl/renderer/frame_history.hpp index a5dbe21bca..b1f0bcb597 100644 --- a/include/mbgl/renderer/frame_history.hpp +++ b/include/mbgl/renderer/frame_history.hpp @@ -16,12 +16,20 @@ struct FrameSnapshot { float z; }; +struct FadeProperties { + float fadedist; + float minfadezoom; + float maxfadezoom; + float bump; +}; + class FrameHistory { public: // Record frame history that will be used to calculate fading params void record(timestamp now, float zoom); bool needsAnimation(timestamp duration) const; + FadeProperties getFadeProperties(timestamp duration); public: std::deque history; -- cgit v1.2.1