GUI.H
Upload User: nthssl
Upload Date: 2022-04-05
Package Size: 25357k
Code Size: 1k
Category:

OpenCV

Development Platform:

Visual C++

  1. #ifndef __GUI_H
  2. #define __GUI_H
  3. #define WIN32_LEAN_AND_MEAN
  4. #define WIN32_EXTRA_LEAN
  5. #include <windows.h>
  6. #include "font.h"
  7. #include "texture.h"
  8. class CGUI
  9. {
  10. private:
  11. int minutesLeft, secondsLeft, millisecondsLeft;
  12. int enemiesLeft;
  13. CFont *font;
  14. CFont *crosshair;
  15. CFont *endText;
  16. public:
  17. CGUI();
  18. ~CGUI();
  19. void SetCurrentTime(float timeLeft);
  20. void SetEnemiesLeft(int eLeft);
  21. void Draw();
  22. void Animate(float deltaTime);
  23. void DrawWinner();
  24. void DrawLoser();
  25. };
  26. #endif