OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Console.h
Go to the documentation of this file.
1 
8 #ifndef _CONSOLE_H_
9 #define _CONSOLE_H_
10 
11 #include <string>
12 #include <vector>
13 
15 
16 class Console {
17  public:
18  static void display();
19 
20  static bool isVisible() { return visible; }
21  static void setVisible(bool v) { visible = v; }
22 
23  private:
24  static int callback(ImGuiTextEditCallbackData* data);
25 
26  const static int bufferLength = 256;
27 
28  static bool visible;
29  static char buffer[bufferLength + 1];
30  static unsigned long lastLogLength;
31  static std::vector<std::string> lastCommands;
32  static long lastCommandIndex;
33  static std::string bufferedCommand;
34 };
35 
36 #endif
37 
static long lastCommandIndex
Definition: Console.h:32
static unsigned long lastLogLength
Definition: Console.h:30
static void display()
Definition: Console.cpp:73
static int callback(ImGuiTextEditCallbackData *data)
Definition: Console.cpp:24
static std::string bufferedCommand
Definition: Console.h:33
static const int bufferLength
Definition: Console.h:26
static std::vector< std::string > lastCommands
Definition: Console.h:31
static bool isVisible()
Definition: Console.h:20
static char buffer[bufferLength+1]
Definition: Console.h:29
static void setVisible(bool v)
Definition: Console.h:21
static bool visible
Definition: Console.h:28