Prepare Font double buffer

This commit is contained in:
2023-11-25 17:23:49 +01:00
parent ef1890b3b7
commit 650509b03a
4 changed files with 39 additions and 4 deletions

View File

@@ -12,13 +12,14 @@
using namespace JabyEngine;
using NewFontWriter = ::JabyEngine::FontWriter;
static object::Paco paco;
static object::Paco paco;
static FontPrimitive font_buffer[2][256];
static void setup() {
static constexpr auto FontTIM = SimpleTIM(320, 0, 320, DefaultFont::Info.VRAMSize.height);
DefaultFont::load(&__heap_start, FontTIM);
NewFontWriter::setup(FontTIM, DefaultFont::Info);
NewFontWriter::setup(FontBufferInfo::from(font_buffer), FontTIM, DefaultFont::Info);
Assets::load_for_main();
FontWriter::FontWriter::setup();