Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Console.h 505B

1234567891011121314151617181920212223242526272829
  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. class Console {
  12. public:
  13. static void display();
  14. private:
  15. const static int bufferLength = 256;
  16. static char buffer[bufferLength + 1];
  17. static bool scrollToBottom;
  18. static bool focusInput;
  19. static unsigned long lastLogLength;
  20. static std::vector<std::string> lastCommands;
  21. static long lastCommandIndex;
  22. };
  23. #endif