Sketch setup of Font

This commit is contained in:
2023-11-26 18:43:23 -05:00
parent e68152417b
commit 598cef32b1
4 changed files with 46 additions and 9 deletions

View File

@@ -72,6 +72,10 @@ namespace JabyEngine {
static constexpr PageClut create(uint16_t x, uint16_t y) {
return PageClut{static_cast<uint16_t>((y << 6) | ((x >> 4) & 0x3f))};
}
static constexpr PageClut create(const PositionU16& clut_pos) {
return PageClut::create(clut_pos.x, clut_pos.y);
}
};
struct TPage {