Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

37 rader
657 B

  1. //
  2. // Deus Hax (working title)
  3. // Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
  4. //
  5. //
  6. // The Ticker class
  7. // ----------------
  8. // The Ticker is a static class that registers entities and ticks them.
  9. //
  10. #if !defined __DH_TICKER_H__
  11. #define __DH_TICKER_H__
  12. #include <stdint.h>
  13. #include "entity.h"
  14. class Ticker
  15. {
  16. public:
  17. static void Register(Entity *entity);
  18. static void Ref(Entity *entity);
  19. static int Unref(Entity *entity);
  20. static void TickGame();
  21. static void TickDraw();
  22. static void ClampFps(float deltams);
  23. static int GetFrameNum();
  24. static void Shutdown();
  25. static int Finished();
  26. };
  27. #endif // __DH_TICKER_H__