[Teton] Factor drawing glyphs to screen into a separate class.

This commit is contained in:
Drew Galbraith 2023-11-21 19:32:31 -08:00
parent fe44804dd9
commit afdb024c36
6 changed files with 60 additions and 7 deletions

View file

@ -20,6 +20,8 @@ class Psf {
void DumpHeader();
uint32_t size() { return header_->numglyph; }
uint32_t width() { return header_->width; }
uint32_t height() { return header_->height; }
uint8_t* glyph(uint32_t index) {
return reinterpret_cast<uint8_t*>(psf_file_.vaddr() + header_->headersize +