aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-06-08 14:34:13 +0200
committerBad Diode <bd@badd10de.dev>2021-06-08 14:34:13 +0200
commit2faf84d78bf261b6f02648e66f0c84efc1eefd05 (patch)
tree3f780b2835eaa8505ebc87769b252fa9d639fe03 /src/renderer.h
parent436b4a1d28f5939e1c0f8792317a639b091b0f29 (diff)
downloadstepper-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.h6
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
47void 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.
49void 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.
50void clear_screen(void); 52void clear_screen(void);