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.

Console.h 640B

12345678910111213141516171819202122232425262728293031323334
  1. /*!
  2. * \file include/Console.h
  3. * \brief Console class
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _CONSOLE_H_
  8. #define _CONSOLE_H_
  9. #include <string>
  10. #include <vector>
  11. struct ImGuiTextEditCallbackData;
  12. class Console {
  13. public:
  14. static void display();
  15. private:
  16. static void callback(ImGuiTextEditCallbackData* data);
  17. const static int bufferLength = 256;
  18. static char buffer[bufferLength + 1];
  19. static bool scrollToBottom;
  20. static bool focusInput;
  21. static unsigned long lastLogLength;
  22. static std::vector<std::string> lastCommands;
  23. static long lastCommandIndex;
  24. static std::string bufferedCommand;
  25. };
  26. #endif