Guest User

Untitled

a guest
May 16th, 2012
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. // FrameTimer.h
  2.  
  3. #pragma once
  4.  
  5. #include <Common/Types.h>
  6.  
  7. class FrameTimeoutCalculator {
  8. public:
  9. FrameTimeoutCalculator();
  10. unsigned getTimeout();
  11. // Haw. Should this implement IFrameListener?
  12. // Probably not, since ModalFrameScheduler's PostMessageIn should
  13. // step() before stepFrame() happens.
  14. void step();
  15.  
  16. private:
  17. unsigned now;
  18. unsigned lastFrame;
  19. };
  20.  
  21. class IMVU_DLL ModalFrameScheduler : public IFrameListener {
  22. public:
  23. ModalFrameScheduler();
  24. void onIdle();
  25. void step();
  26.  
  27. private:
  28. bool stepping;
  29. FrameTimeoutCalculator ftc;
  30. };
Advertisement
Add Comment
Please, Sign In to add comment