Move back to SPRT font instead of SPRT_16 for more efficency
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <PSX/GPU/make_gpu_primitives.hpp>
|
||||
|
||||
namespace JabyEngine {
|
||||
using FontPrimitive = GPU::SPRT_16::Linked;
|
||||
using FontPrimitive = GPU::SPRT::Linked;
|
||||
|
||||
struct FontInfo {
|
||||
GPU::SizeU16 texture_size;
|
||||
|
@@ -16,8 +16,6 @@ namespace JabyEngine {
|
||||
GPU::PageClut clut;
|
||||
GPU::Link* last_primitive;
|
||||
|
||||
void setup(const SimpleTIM& vram_dst, const GPU::SizeI16& font_size);
|
||||
|
||||
public:
|
||||
static constexpr FontWriter empty() {
|
||||
FontWriter instance;
|
||||
@@ -30,6 +28,8 @@ namespace JabyEngine {
|
||||
return instance;
|
||||
}
|
||||
|
||||
void setup(const SimpleTIM& vram_dst, const GPU::SizeI16& font_size);
|
||||
|
||||
void setup(const SimpleTIM& vram_dst, const FontInfo& font_info) {
|
||||
FontWriter::setup(vram_dst, Make::SizeI16(font_info.font_size.width, font_info.font_size.height));
|
||||
}
|
||||
|
Reference in New Issue
Block a user