summaryrefslogtreecommitdiffstats
path: root/src/renderer/Console.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-17 23:05:51 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-17 23:05:51 +0200
commit7a034142c99e577b0339aefd9599cb7f373c495e (patch)
tree722b1946daf2b24374c7fcfab0face06af5eefba /src/renderer/Console.h
parentMerge remote-tracking branch 'origin/miami' into lcs (diff)
parentrender -> renderer (original name) (diff)
downloadre3-7a034142c99e577b0339aefd9599cb7f373c495e.tar
re3-7a034142c99e577b0339aefd9599cb7f373c495e.tar.gz
re3-7a034142c99e577b0339aefd9599cb7f373c495e.tar.bz2
re3-7a034142c99e577b0339aefd9599cb7f373c495e.tar.lz
re3-7a034142c99e577b0339aefd9599cb7f373c495e.tar.xz
re3-7a034142c99e577b0339aefd9599cb7f373c495e.tar.zst
re3-7a034142c99e577b0339aefd9599cb7f373c495e.zip
Diffstat (limited to 'src/renderer/Console.h')
-rw-r--r--src/renderer/Console.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/renderer/Console.h b/src/renderer/Console.h
new file mode 100644
index 00000000..9f22236f
--- /dev/null
+++ b/src/renderer/Console.h
@@ -0,0 +1,27 @@
+#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();
+ void Init() { m_nCurrentLine = 0; m_nLineCount = 0; }
+};
+
+extern CConsole TheConsole;
+
+void cprintf(char*, ...); \ No newline at end of file