This commit is contained in:
Sergeanur
2020-03-22 13:26:35 +02:00
parent f9342c7e83
commit 5e37c3e805
5 changed files with 125 additions and 1 deletions

24
src/render/Console.h Normal file
View File

@@ -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;