Start refactor of FontWriter
This commit is contained in:
@@ -12,21 +12,23 @@ static object::Paco paco;
|
||||
|
||||
static void setup() {
|
||||
Assets::load_for_main();
|
||||
FontWriter::setup();
|
||||
FontWriter::FontWriter::setup();
|
||||
|
||||
paco.setup();
|
||||
}
|
||||
|
||||
static void update() {
|
||||
const auto end_pos = FontWriter::write({0, 32}, "Cody is cute\n&\na \x1b[8;0;0mBAAAAABY!!!");
|
||||
FontWriter::write(end_pos, "\x1b[0;7;7mJaby was\nhere c:");
|
||||
FontWriter::FontWriter cursor;
|
||||
|
||||
const auto end_pos = cursor.write({0, 32}, "Cody is cute\n&\na \x1b[8;0;0mBAAAAABY!!!");
|
||||
cursor.write(end_pos, "\x1b[0;7;7mJaby was\nhere c:");
|
||||
|
||||
paco.update();
|
||||
}
|
||||
|
||||
static void render() {
|
||||
GPU::swap_buffers_vsync(1);
|
||||
FontWriter::render();
|
||||
FontWriter::FontWriter::render();
|
||||
paco.render();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user