diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-08 22:27:52 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-08 22:27:52 +0100 |
commit | 71fba1c1de9509ed8e7a4db712f6b535fa1f1514 (patch) | |
tree | f5ae9c4f8b9feb46e1b20af45e84184a41a7d8c8 /src/vga.h | |
parent | cb6d24b838632e1269a5e4bb4e83425061f5d853 (diff) | |
download | gold-mine-run-71fba1c1de9509ed8e7a4db712f6b535fa1f1514.tar.gz gold-mine-run-71fba1c1de9509ed8e7a4db712f6b535fa1f1514.zip |
Add blit rectangle
Allows blitting a section of a larger sprite.
Diffstat (limited to 'src/vga.h')
-rw-r--r-- | src/vga.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -21,6 +21,8 @@ void wait_vsync(); void set_palette(const uint8_t *palette); void blit(const uint8_t *sprite, const Rect *dst); +/* in src w is sprite width, h is sprite height */ +void blitrc(const uint8_t *sprite, const Rect *src, const Rect *dst); void blit_erase(uint8_t c); void blit_update(); |