From 2ab411c4b8855d11d48454a93262e8eae3ba7fc7 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 6 May 2023 09:02:04 +1000 Subject: Menus, game over, dying, etc. --- render.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'render.h') diff --git a/render.h b/render.h index d63297e..be03f02 100644 --- a/render.h +++ b/render.h @@ -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, -- cgit v1.2.3-54-g00ecf