Basic rendering of the font

This commit is contained in:
2023-11-30 20:24:26 -05:00
parent f087fe6417
commit c7e43a0210
3 changed files with 58 additions and 24 deletions

View File

@@ -3,7 +3,14 @@
namespace JabyEngine {
struct FontWriter {
static void setup(const FontBufferInfo& buffer_info, const SimpleTIM& vram_dst, const FontInfo& font_info);
static void render();
struct Cursor {
GPU::PositionI16 pos;
void write(const char* str);
};
static void setup(const FontBufferInfo& buffer_info, const SimpleTIM& vram_dst, const FontInfo& font_info);
static Cursor start(const GPU::PositionI16& pos);
static void render();
};
}