You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.1 KiB

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the Do What The Fuck You Want To
  7. // Public License, Version 2, as published by Sam Hocevar. See
  8. // http://sam.zoy.org/projects/COPYING.WTFPL for more details.
  9. //
  10. //
  11. // The Ticker class
  12. // ----------------
  13. // The Ticker is a static class that registers entities and ticks them.
  14. //
  15. #if !defined __LOL_TICKER_H__
  16. #define __LOL_TICKER_H__
  17. #include <stdint.h>
  18. #include "entity.h"
  19. namespace lol
  20. {
  21. class Ticker
  22. {
  23. public:
  24. static void Register(Entity *entity);
  25. static void Ref(Entity *entity);
  26. static int Unref(Entity *entity);
  27. static void Setup(float fps);
  28. static void TickGame();
  29. static void TickDraw();
  30. static void ClampFps();
  31. static void StartBenchmark();
  32. static void StopBenchmark();
  33. static void StartRecording();
  34. static void StopRecording();
  35. static int GetFrameNum();
  36. static void Shutdown();
  37. static int Finished();
  38. };
  39. } /* namespace lol */
  40. #endif // __LOL_TICKER_H__