diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2019-09-27 11:34:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-27 11:34:55 -0400 |
commit | 301822603ea19ee69b9bd64b266e51a8ed9b7c04 (patch) | |
tree | e449cf9dddb0e371f1bc73f1d534d6c4e615305c /gflib/blit.h | |
parent | 3d9bad5558c6ef8828be7a50e3e553d55ca877e0 (diff) | |
parent | ab139bf2542971c085f05617aa4cedbe7ae859dd (diff) |
Merge pull request #802 from PikalaxALT/gflib
Gflib and libagbsyscall
Diffstat (limited to 'gflib/blit.h')
-rw-r--r-- | gflib/blit.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gflib/blit.h b/gflib/blit.h new file mode 100644 index 000000000..78f67766e --- /dev/null +++ b/gflib/blit.h @@ -0,0 +1,17 @@ +#ifndef GUARD_BLIT_H +#define GUARD_BLIT_H + +struct Bitmap +{ + u8 *pixels; + u32 width:16; + u32 height:16; +}; + +void BlitBitmapRect4BitWithoutColorKey(const struct Bitmap *src, struct Bitmap *dst, u16 srcX, u16 srcY, u16 dstX, u16 dstY, u16 width, u16 height); +void BlitBitmapRect4Bit(const struct Bitmap *src, struct Bitmap *dst, u16 srcX, u16 srcY, u16 dstX, u16 dstY, u16 width, u16 height, u8 colorKey); +void FillBitmapRect4Bit(struct Bitmap *surface, u16 x, u16 y, u16 width, u16 height, u8 fillValue); +void BlitBitmapRect4BitTo8Bit(const struct Bitmap *src, struct Bitmap *dst, u16 srcX, u16 srcY, u16 dstX, u16 dstY, u16 width, u16 height, u8 colorKey, u8 paletteOffset); +void FillBitmapRect8Bit(struct Bitmap *surface, u16 x, u16 y, u16 width, u16 height, u8 fillValue); + +#endif // GUARD_BLIT_H |