diff options
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, |