Prepare Font double buffer
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user