aboutsummaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
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,