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