Add basic text rendering
This commit is contained in:
parent
064cdc5ba0
commit
22b6ee1136
16 changed files with 43620 additions and 6 deletions
18
src/font.h
Normal file
18
src/font.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int width;
|
||||
const uint8_t *bitmap;
|
||||
} FontGlyph_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int height;
|
||||
int charoffset;
|
||||
int glyphcount;
|
||||
const FontGlyph_t *glyphs;
|
||||
} Font_t;
|
Loading…
Add table
Add a link
Reference in a new issue