Re3/src/render/Console.h

26 lines
514 B
C
Raw Normal View History

2020-03-22 10:23:40 -04:00
#pragma once
class CConsole
{
2020-03-22 10:26:18 -04:00
enum
{
MAX_LINES = 8, // BUG? only shows 7
MAX_STR_LEN = 40,
2020-03-22 10:23:40 -04:00
};
2020-03-22 10:26:18 -04:00
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];
2020-03-22 10:23:40 -04:00
public:
2020-03-22 10:26:18 -04:00
void AddLine(char *s, uint8 r, uint8 g, uint8 b);
void AddOneLine(char *s, uint8 r, uint8 g, uint8 b);
2020-03-22 10:23:40 -04:00
void Display();
2020-03-22 11:48:16 -04:00
void Init() { m_nCurrentLine = 0; m_nLineCount = 0; }
2020-03-22 10:23:40 -04:00
};
2020-04-17 00:01:54 -04:00
extern CConsole TheConsole;