pokeemerald/include/blit.h

18 lines
807 B
C
Raw Normal View History

2018-02-28 12:07:58 +00:00
#ifndef GUARD_BLIT_H
#define GUARD_BLIT_H
struct Bitmap
{
2018-12-20 21:53:08 +00:00
u8 *pixels;
u32 width:16;
u32 height:16;
};
2018-12-20 21:53:08 +00:00
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);
2018-02-28 12:07:58 +00:00
void FillBitmapRect4Bit(struct Bitmap *surface, u16 x, u16 y, u16 width, u16 height, u8 fillValue);
2018-12-20 21:53:08 +00:00
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);
2018-02-28 12:07:58 +00:00
void FillBitmapRect8Bit(struct Bitmap *surface, u16 x, u16 y, u16 width, u16 height, u8 fillValue);
#endif // GUARD_BLIT_H