From 2faf84d78bf261b6f02648e66f0c84efc1eefd05 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 8 Jun 2021 14:34:13 +0200 Subject: Change draw_tile to allow coloring of flat tiles --- src/renderer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/renderer.h') diff --git a/src/renderer.h b/src/renderer.h index a240b17..4620c27 100644 --- a/src/renderer.h +++ b/src/renderer.h @@ -43,8 +43,10 @@ void draw_filled_rect(size_t x0, size_t y0, size_t x1, size_t y1, u8 clr); // Draw a 8x8 tile starting at the (x, y) position. If the merge parameter is // set, colors will be added together instead of replaced. This could lead to -// some merging issues if we are not careful with the chosen colors. -void draw_tile(size_t x, size_t y, Tile *tile, bool merge); +// some merging issues if we are not careful with the chosen colors. The tile +// color will be multiplied by the given clr parameter, which is useful to +// change the color of flat tiles. +void draw_tile(size_t x, size_t y, Tile *tile, u8 clr, bool merge); // Fills the framebuffer with color 0. void clear_screen(void); -- cgit v1.2.1