bitblt.h

Thu, 27 Dec 2001 11:04:43 +0000

author
eric
date
Thu, 27 Dec 2001 11:04:43 +0000
changeset 2
8ca2aaf0513f
child 3
317de52d8a63
permissions
-rw-r--r--

Initial revision

     1 typedef unsigned char u8;
     2 typedef unsigned int u32;
     3 typedef int boolean;
     5 typedef struct Point
     6 {
     7   u32 x;
     8   u32 y;
     9 } Point;
    11 typedef struct Rect
    12 {
    13   Point upper_left;
    14   Point lower_right;
    15 } Rect;
    17 typedef struct Bitmap
    18 {
    19   u8 *bits;
    20   u32 width;
    21   u32 height;
    22   u32 rowbytes;
    23 } Bitmap;
    26 #define TF_SRC 0xc
    27 #define TF_AND 0x8
    28 #define TF_OR  0xe
    29 #define TF_XOR 0x6
    32 Bitmap *create_bitmap (u32 width, u32 height);
    33 void free_bitmap (Bitmap *bitmap);
    34 boolean get_pixel (Bitmap *bitmap, Point coord);
    35 void set_pixel (Bitmap *bitmap, Point coord, boolean value);
    37 Bitmap *bitblt (Bitmap *src_bitmap,
    38 		Rect src_rect,
    39 		Bitmap *dest_bitmap,
    40 		Point dest_upper_left,
    41 		boolean flip_horizontal,
    42 		boolean flip_vertical,
    43 		boolean transpose,
    44 		int tfn);