#ifndef LLMR_RENDERER_FRAME_HISTORY #define LLMR_RENDERER_FRAME_HISTORY #include #include #include #include #include namespace llmr { struct FrameSnapshot { explicit inline FrameSnapshot(time timestamp, float z) : timestamp(timestamp), z(z) {} float timestamp; float z; }; class FrameHistory { public: // Record frame history that will be used to calculate fading params void record(time now, float zoom); bool needsAnimation(time duration) const; public: std::deque history; }; } #endif