summaryrefslogtreecommitdiff
path: root/include/mbgl/renderer
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-09-05 14:03:33 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-09-05 14:03:33 -0700
commitde720f351549ca4ff846c84899082320f6d30d5a (patch)
tree196483f006e0f584b7e79dbb0af97dd0d1d0e729 /include/mbgl/renderer
parent4c0b4a79017bc7c7ae864e6f961f186605be617f (diff)
downloadqtlocation-mapboxgl-de720f351549ca4ff846c84899082320f6d30d5a.tar.gz
FrameHistory::getFadeProperties
Diffstat (limited to 'include/mbgl/renderer')
-rw-r--r--include/mbgl/renderer/frame_history.hpp8
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;