Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // FrameTimer.h
- #pragma once
- #include <Common/Types.h>
- class FrameTimeoutCalculator {
- public:
- FrameTimeoutCalculator();
- unsigned getTimeout();
- // Haw. Should this implement IFrameListener?
- // Probably not, since ModalFrameScheduler's PostMessageIn should
- // step() before stepFrame() happens.
- void step();
- private:
- unsigned now;
- unsigned lastFrame;
- };
- class IMVU_DLL ModalFrameScheduler : public IFrameListener {
- public:
- ModalFrameScheduler();
- void onIdle();
- void step();
- private:
- bool stepping;
- FrameTimeoutCalculator ftc;
- };
Advertisement
Add Comment
Please, Sign In to add comment