diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2014-09-05 14:03:33 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2014-09-05 14:03:33 -0700 |
commit | de720f351549ca4ff846c84899082320f6d30d5a (patch) | |
tree | 196483f006e0f584b7e79dbb0af97dd0d1d0e729 /include/mbgl/renderer | |
parent | 4c0b4a79017bc7c7ae864e6f961f186605be617f (diff) | |
download | qtlocation-mapboxgl-de720f351549ca4ff846c84899082320f6d30d5a.tar.gz |
FrameHistory::getFadeProperties
Diffstat (limited to 'include/mbgl/renderer')
-rw-r--r-- | include/mbgl/renderer/frame_history.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
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<FrameSnapshot> history; |