Console
Console ⟵ Object2D
Console system with three windows for log, error, and info
messages.
Provides a console interface similar to old Borland C++ editor with.
Methods
static Console& Console::getInstance(const string& type)
gets console instance by type (log, error, info)
| type | console type |
static void Console::log(const string& message)
adds a log message to the console
| message | message to display |
static void Console::error(const string& message)
adds an error message to the console
| message | error message to display |
static void Console::info(const string& message)
adds an info message to the console
| message | info message to display |
void Console::setVisible(bool visible)
shows or hides this console instance
| visible | visibility state |
void Console::setPosition(f32 x, f32 y)
sets this console instance position
| x | x position | |
| y | y position |
void Console::refresh()
refreshes this console instance display
Properties
| cellHeight | u32 | character height (16) |
| cellWidth | u32 | character width (8) |
| cells | vector<vector |
2D cell array [y][x] = charCode |
| cols | u32 | number of columns (30) |
| maxLines | u32 | maximum lines per window |
| rows | u32 | number of rows (8) |
| windowHeight | f32 | height of each window |
| windowWidth | f32 | width of each window |