[Teton] Factor drawing glyphs to screen into a separate class.
This commit is contained in:
parent
fe44804dd9
commit
afdb024c36
6 changed files with 60 additions and 7 deletions
|
|
@ -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 +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue