Basic rendering of the font

This commit is contained in:
Jaby
2023-11-30 20:24:26 -05:00
parent 94e1c5fb5c
commit e8cd481086
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();
};
}