Change to double buffering and SPRT_16
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <PSX/GPU/make_gpu_primitives.hpp>
|
||||
|
||||
namespace JabyEngine {
|
||||
using FontPrimitive = GPU::SPRT::Linked;
|
||||
using FontPrimitive = GPU::SPRT_16::Linked;
|
||||
|
||||
struct FontInfo {
|
||||
GPU::SizeU16 texture_size;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user