FrameHistory::getFadeProperties

This commit is contained in:
John Firebaugh
2014-09-05 14:03:33 -07:00
parent 4c0b4a7901
commit de720f3515
3 changed files with 51 additions and 37 deletions

View File

@@ -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;