GCubeSDK
©2026 FenixFox®Studios

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.

InheritanceDiagram node_Console Console node_Object2D Object2D node_Object2D->node_Console

Methods

static Console& getInstance(const string& type)

gets console instance by type (log, error, info)

type console type

static void log(const string& message)

adds a log message to the console

message message to display

static void error(const string& message)

adds an error message to the console

message error message to display

static void info(const string& message)

adds an info message to the console

message info message to display

void setVisible(bool visible)

shows or hides this console instance

visible visibility state

void setPosition(f32 x, f32 y)

sets this console instance position

x x position
y y position

void refresh()

refreshes this console instance display

Properties

windowWidth f32 width of each window
windowHeight f32 height of each window
maxLines u32 maximum lines per window
cols u32 number of columns (30)
rows u32 number of rows (8)
cellWidth u32 character width (8)
cellHeight u32 character height (16)
cells vector<vector> 2D cell array [y][x] = charCode