1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /*!
- * \file include/Debug.h
- * \brief Debug UI
- *
- * \author xythobuz
- */
-
- #ifndef _DEBUG_H_
- #define _DEBUG_H_
-
- #include "UI.h"
-
- class Debug : public UI {
- public:
- Debug();
- virtual ~Debug();
-
- virtual int initialize();
- virtual void eventsFinished();
- virtual void display();
- virtual void calculate();
- virtual void shutdown();
-
- virtual void handleKeyboard(KeyboardButton key, bool pressed);
- virtual void handleText(char *text, bool notFinished);
- virtual void handleMouseClick(unsigned int x, unsigned int y, KeyboardButton button, bool released);
- virtual void handleMouseMotion(int xrel, int yrel, int xabs, int yabs);
- virtual void handleMouseScroll(int xrel, int yrel);
-
- private:
- static void renderImGui(ImDrawList** const draw_lists, int count);
-
- static unsigned int fontTex;
- std::string iniFilename;
- std::string logFilename;
- };
-
- Debug &getDebug();
-
- #endif
|