12345678910111213141516171819202122232425262728293031323334 |
- /*!
- * \file include/Console.h
- * \brief Console class
- *
- * \author xythobuz
- */
-
- #ifndef _CONSOLE_H_
- #define _CONSOLE_H_
-
- #include <string>
- #include <vector>
-
- struct ImGuiTextEditCallbackData;
-
- class Console {
- public:
- static void display();
-
- private:
- static void callback(ImGuiTextEditCallbackData* data);
-
- const static int bufferLength = 256;
- static char buffer[bufferLength + 1];
- static bool scrollToBottom;
- static bool focusInput;
- static unsigned long lastLogLength;
- static std::vector<std::string> lastCommands;
- static long lastCommandIndex;
- static std::string bufferedCommand;
- };
-
- #endif
|