aboutsummaryrefslogtreecommitdiff
path: root/src/vga.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-08 22:27:52 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-08 22:27:52 +0100
commit71fba1c1de9509ed8e7a4db712f6b535fa1f1514 (patch)
treef5ae9c4f8b9feb46e1b20af45e84184a41a7d8c8 /src/vga.h
parentcb6d24b838632e1269a5e4bb4e83425061f5d853 (diff)
downloadgold-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vga.h b/src/vga.h
index 8dae83d..40dbcdf 100644
--- a/src/vga.h
+++ b/src/vga.h
@@ -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();