aboutsummaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-06 09:02:04 +1000
committerquou <quou@disroot.org>2023-05-06 09:02:04 +1000
commit2ab411c4b8855d11d48454a93262e8eae3ba7fc7 (patch)
treee608ebd0bea71570be0a3619f9848f975669e5ef /render.h
parentfb104368dd33b66e0575dcc0327cbae7046a4e1e (diff)
Menus, game over, dying, etc.
Diffstat (limited to 'render.h')
-rw-r--r--render.h18
1 files changed, 13 insertions, 5 deletions
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,