Engine.h 621 B

123456789101112131415161718192021222324252627282930
  1. #ifndef ENGINE_H
  2. #define ENGINE_H
  3. #include "client/rendering/Renderer.h"
  4. #include "client/rendering/ShaderMatrix.h"
  5. #include "input/Buttons.h"
  6. #include "input/TextInput.h"
  7. #include "utils/Clock.h"
  8. #include "utils/Size.h"
  9. #include "utils/Utils.h"
  10. namespace Engine {
  11. extern Renderer renderer;
  12. extern ShaderMatrix matrix;
  13. extern float lag;
  14. bool init();
  15. void run();
  16. void stop();
  17. void setTextInput(TextInput* input);
  18. bool isActiveTextInput(TextInput* input);
  19. Buttons& getButtons();
  20. const Size& getSize();
  21. const Clock& getFrameClock();
  22. const Clock& getTickClock();
  23. }
  24. #endif