Start refactor of FontWriter

This commit is contained in:
2023-08-31 05:15:34 +02:00
parent 9136d762fb
commit 1e94d0352b
6 changed files with 88 additions and 46 deletions

View File

@@ -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();
}