Open Source Tomb Raider Engine
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.

Debug.h 862B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*!
  2. * \file include/Debug.h
  3. * \brief Debug UI
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _DEBUG_H_
  8. #define _DEBUG_H_
  9. #include "UI.h"
  10. class Debug : public UI {
  11. public:
  12. Debug();
  13. virtual ~Debug();
  14. virtual int initialize();
  15. virtual void eventsFinished();
  16. virtual void display();
  17. virtual void handleKeyboard(KeyboardButton key, bool pressed);
  18. virtual void handleText(char *text, bool notFinished);
  19. virtual void handleMouseClick(unsigned int x, unsigned int y, KeyboardButton button, bool released);
  20. virtual void handleMouseMotion(int xrel, int yrel, int xabs, int yabs);
  21. virtual void handleMouseScroll(int xrel, int yrel);
  22. private:
  23. static void renderImGui(ImDrawList** const draw_lists, int count);
  24. static unsigned int fontTex;
  25. std::string iniFilename;
  26. std::string logFilename;
  27. };
  28. Debug &getDebug();
  29. #endif