2018-02-28 13:07:58 +01:00
|
|
|
#ifndef GUARD_BLIT_H
|
|
|
|
#define GUARD_BLIT_H
|
|
|
|
|
2018-10-18 21:24:37 +02:00
|
|
|
struct Bitmap
|
|
|
|
{
|
2018-12-17 23:00:08 +01:00
|
|
|
const u8 *pixels;
|
2018-10-18 21:24:37 +02:00
|
|
|
u32 width:16;
|
|
|
|
u32 height:16;
|
|
|
|
};
|
|
|
|
|
2018-02-28 13:07:58 +01:00
|
|
|
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);
|
|
|
|
void BlitBitmapRect4BitTo8Bit(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
|