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.

45 rader
824 B

  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://www.wtfpl.net/ for more details.
  9. //
  10. //
  11. // The Application class
  12. // ---------------------
  13. //
  14. #if !defined __LOL_APPLICATION_H__
  15. #define __LOL_APPLICATION_H__
  16. namespace lol
  17. {
  18. class ApplicationData;
  19. class Application
  20. {
  21. public:
  22. Application(char const *name, ivec2 resolution, float framerate);
  23. ~Application();
  24. bool MustTick();
  25. void Tick();
  26. void Run() { while(MustTick()) Tick(); }
  27. void ShowPointer(bool show);
  28. private:
  29. ApplicationData *data;
  30. };
  31. } /* namespace lol */
  32. #endif // __LOL_APPLICATION_H__