summaryrefslogtreecommitdiff
path: root/include/blit.h
diff options
context:
space:
mode:
authorDiegoisawesome <Diegoisawesome@users.noreply.github.com>2018-10-18 19:18:44 -0500
committerGitHub <noreply@github.com>2018-10-18 19:18:44 -0500
commit442baf1a00d9dc06b9d8175a66b70fe159b3aa3f (patch)
tree9e908648f10c5b3891949815d94508d0b14dfade /include/blit.h
parentb23dc9a12303e979b7612c703f706cbe2b091c96 (diff)
parentdfee5deca8e5c6f5b35b75d56e215638b66320b0 (diff)
Merge pull request #367 from DizzyEggg/move_blitmap
Move Bitmap struct and clear sprite/text files a bit
Diffstat (limited to 'include/blit.h')
-rw-r--r--include/blit.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/blit.h b/include/blit.h
index e7f384cc8..2fe99d7bd 100644
--- a/include/blit.h
+++ b/include/blit.h
@@ -1,6 +1,13 @@
#ifndef GUARD_BLIT_H
#define GUARD_BLIT_H
+struct Bitmap
+{
+ u8* pixels;
+ u32 width:16;
+ u32 height:16;
+};
+
void BlitBitmapRect4BitWithoutColorKey(struct Bitmap *src, struct Bitmap *dst, u16 srcX, u16 srcY, u16 dstX, u16 dstY, u16 width, u16 height);
void BlitBitmapRect4Bit(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);