diff options
author | quou <quou@disroot.org> | 2023-05-06 09:02:04 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-06 09:02:04 +1000 |
commit | 2ab411c4b8855d11d48454a93262e8eae3ba7fc7 (patch) | |
tree | e608ebd0bea71570be0a3619f9848f975669e5ef /render.h | |
parent | fb104368dd33b66e0575dcc0327cbae7046a4e1e (diff) |
Menus, game over, dying, etc.
Diffstat (limited to 'render.h')
-rw-r--r-- | render.h | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -24,28 +24,36 @@ void init_bitmap( int h ); -typedef struct { - Bitmap* bmp; +typedef struct BM_Font { + const Bitmap* bmp; int char_w, char_h; int chars_across; } BM_Font; void init_font( BM_Font* font, - Bitmap* bmp, + const Bitmap* bmp, int char_w, int char_h, int chars_across ); -void rfont_char(int x, int y, char c); -void rfont_char_col(int x, int y, char c, Colour colour); +void rfont_char(const BM_Font* font, int x, int y, char c); +void rfont_char_col( + const BM_Font* font, + int x, + int y, + char c, + Colour colour +); void rfont_text( + const BM_Font* font, int x, int y, const char* text ); void rfont_text_col( + const BM_Font* font, int x, int y, const char* text, |