Change to double buffering and SPRT_16

This commit is contained in:
2023-12-20 15:12:21 -05:00
parent d7fce900f9
commit 4bf87bc85f
5 changed files with 23 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ namespace JabyEngine {
FontWriter::write(state, str, color, wiggle, list); \
va_end(list)
GPU::TexPage::Linked tex_page;
GPU::TexPage::Linked tex_page[2];
GPU::SizeI16 font_size;
GPU::PageClut clut;
GPU::Link* last_primitive;
@@ -22,7 +22,8 @@ namespace JabyEngine {
static constexpr FontWriter empty() {
FontWriter instance;
instance.tex_page = {0};
instance.tex_page[0] = {0};
instance.tex_page[1] = {0};
instance.font_size = Make::SizeI16();
instance.clut = Make::PageClut();
instance.last_primitive = nullptr;