diff options
author | Bad Diode <bd@badd10de.dev> | 2021-06-08 14:34:13 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-06-08 14:34:13 +0200 |
commit | 2faf84d78bf261b6f02648e66f0c84efc1eefd05 (patch) | |
tree | 3f780b2835eaa8505ebc87769b252fa9d639fe03 /src/renderer.h | |
parent | 436b4a1d28f5939e1c0f8792317a639b091b0f29 (diff) | |
download | stepper-2faf84d78bf261b6f02648e66f0c84efc1eefd05.tar.gz stepper-2faf84d78bf261b6f02648e66f0c84efc1eefd05.zip |
Change draw_tile to allow coloring of flat tiles
Diffstat (limited to 'src/renderer.h')
-rw-r--r-- | src/renderer.h | 6 |
1 files changed, 4 insertions, 2 deletions
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); | |||
43 | 43 | ||
44 | // Draw a 8x8 tile starting at the (x, y) position. If the merge parameter is | 44 | // Draw a 8x8 tile starting at the (x, y) position. If the merge parameter is |
45 | // set, colors will be added together instead of replaced. This could lead to | 45 | // set, colors will be added together instead of replaced. This could lead to |
46 | // some merging issues if we are not careful with the chosen colors. | 46 | // some merging issues if we are not careful with the chosen colors. The tile |
47 | void draw_tile(size_t x, size_t y, Tile *tile, bool merge); | 47 | // color will be multiplied by the given clr parameter, which is useful to |
48 | // change the color of flat tiles. | ||
49 | void draw_tile(size_t x, size_t y, Tile *tile, u8 clr, bool merge); | ||
48 | 50 | ||
49 | // Fills the framebuffer with color 0. | 51 | // Fills the framebuffer with color 0. |
50 | void clear_screen(void); | 52 | void clear_screen(void); |