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 921B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 calculate();
  18. virtual void shutdown();
  19. virtual void handleKeyboard(KeyboardButton key, bool pressed);
  20. virtual void handleText(char *text, bool notFinished);
  21. virtual void handleMouseClick(unsigned int x, unsigned int y, KeyboardButton button, bool released);
  22. virtual void handleMouseMotion(int xrel, int yrel, int xabs, int yabs);
  23. virtual void handleMouseScroll(int xrel, int yrel);
  24. private:
  25. static void renderImGui(ImDrawList** const draw_lists, int count);
  26. static unsigned int fontTex;
  27. std::string iniFilename;
  28. std::string logFilename;
  29. };
  30. Debug &getDebug();
  31. #endif