re3/src/render/Console.h

26 lines
514 B
C
Raw Normal View History

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