1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/bitblt.h Thu Dec 27 11:04:43 2001 +0000 1.3 @@ -0,0 +1,44 @@ 1.4 +typedef unsigned char u8; 1.5 +typedef unsigned int u32; 1.6 +typedef int boolean; 1.7 + 1.8 +typedef struct Point 1.9 +{ 1.10 + u32 x; 1.11 + u32 y; 1.12 +} Point; 1.13 + 1.14 +typedef struct Rect 1.15 +{ 1.16 + Point upper_left; 1.17 + Point lower_right; 1.18 +} Rect; 1.19 + 1.20 +typedef struct Bitmap 1.21 +{ 1.22 + u8 *bits; 1.23 + u32 width; 1.24 + u32 height; 1.25 + u32 rowbytes; 1.26 +} Bitmap; 1.27 + 1.28 + 1.29 +#define TF_SRC 0xc 1.30 +#define TF_AND 0x8 1.31 +#define TF_OR 0xe 1.32 +#define TF_XOR 0x6 1.33 + 1.34 + 1.35 +Bitmap *create_bitmap (u32 width, u32 height); 1.36 +void free_bitmap (Bitmap *bitmap); 1.37 +boolean get_pixel (Bitmap *bitmap, Point coord); 1.38 +void set_pixel (Bitmap *bitmap, Point coord, boolean value); 1.39 + 1.40 +Bitmap *bitblt (Bitmap *src_bitmap, 1.41 + Rect src_rect, 1.42 + Bitmap *dest_bitmap, 1.43 + Point dest_upper_left, 1.44 + boolean flip_horizontal, 1.45 + boolean flip_vertical, 1.46 + boolean transpose, 1.47 + int tfn);