diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-06 22:58:48 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-06 22:58:48 +0100 |
commit | 1c1e91bd8bf4e9d08cd4d8ee41568e3d25ee8256 (patch) | |
tree | 9f556e4cf692f83938ec772342b4cd6bb89323d8 /src/vga.h | |
parent | 960db500527928e88bfb3787c9861a8b09f44749 (diff) | |
download | gold-mine-run-1c1e91bd8bf4e9d08cd4d8ee41568e3d25ee8256.tar.gz gold-mine-run-1c1e91bd8bf4e9d08cd4d8ee41568e3d25ee8256.zip |
First stab at the sw blitter
Diffstat (limited to 'src/vga.h')
-rw-r--r-- | src/vga.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,7 +1,10 @@ #ifndef _VGA_H #define _VGA_H -uint8_t *open_framebuffer(); +/* palette index to be used as transparent color */ +#define TRANSPARENT 16 + +uint8_t open_framebuffer(); void close_framebuffer(); void set_mode(uint8_t mode); @@ -10,4 +13,8 @@ void wait_vsync(); /* the palette is expected to be 8 bit per color, and will be converted to VGA's 6 bit per color */ void set_palette(const uint8_t *palette); +void blit(const uint8_t *src, uint16_t x, uint16_t y, uint16_t w, uint16_t h); +void blit_erase(uint8_t c); +void blit_update(); + #endif /* _VGA_H */ |