summaryrefslogtreecommitdiffstats
path: root/src/render/Console.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-03-22 12:26:35 +0100
committerSergeanur <s.anureev@yandex.ua>2020-03-22 15:19:10 +0100
commit5e37c3e805088f58392349c3c801d481d469dac2 (patch)
tree445046c822ef0c3106f4de78382b1b261b0205ce /src/render/Console.h
parentMerge pull request #350 from Nick007J/master (diff)
downloadre3-5e37c3e805088f58392349c3c801d481d469dac2.tar
re3-5e37c3e805088f58392349c3c801d481d469dac2.tar.gz
re3-5e37c3e805088f58392349c3c801d481d469dac2.tar.bz2
re3-5e37c3e805088f58392349c3c801d481d469dac2.tar.lz
re3-5e37c3e805088f58392349c3c801d481d469dac2.tar.xz
re3-5e37c3e805088f58392349c3c801d481d469dac2.tar.zst
re3-5e37c3e805088f58392349c3c801d481d469dac2.zip
Diffstat (limited to 'src/render/Console.h')
-rw-r--r--src/render/Console.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/render/Console.h b/src/render/Console.h
new file mode 100644
index 00000000..eb84c1a5
--- /dev/null
+++ b/src/render/Console.h
@@ -0,0 +1,24 @@
+#pragma once
+
+class CConsole
+{
+ enum
+ {
+ MAX_LINES = 8, // BUG? only shows 7
+ MAX_STR_LEN = 40,
+ };
+
+ uint8 m_nLineCount;
+ uint8 m_nCurrentLine;
+ wchar Buffers[MAX_LINES][MAX_STR_LEN];
+ uint32 m_aTimer[MAX_LINES];
+ uint8 m_aRed[MAX_LINES];
+ uint8 m_aGreen[MAX_LINES];
+ uint8 m_aBlue[MAX_LINES];
+public:
+ void AddLine(char *s, uint8 r, uint8 g, uint8 b);
+ void AddOneLine(char *s, uint8 r, uint8 g, uint8 b);
+ void Display();
+};
+
+extern CConsole &TheConsole; \ No newline at end of file