/*! * \file include/Console.h * \brief Console class * * \author xythobuz */ #ifndef _CONSOLE_H_ #define _CONSOLE_H_ #include #include 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 lastCommands; static long lastCommandIndex; static std::string bufferedCommand; }; #endif