2011-02-18 18:46:37 +01:00
|
|
|
|
2014-09-12 17:15:23 +02:00
|
|
|
#pragma pack(push, 1)
|
2011-02-18 18:46:37 +01:00
|
|
|
typedef struct
|
|
|
|
{
|
2014-09-12 17:15:23 +02:00
|
|
|
int w;
|
|
|
|
int h;
|
|
|
|
char *bmp;
|
|
|
|
char *alpha;
|
|
|
|
} GB_BMP;
|
|
|
|
#pragma pack(pop)
|
2011-02-18 18:46:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
void (* __stdcall gb_pixel_set)(GB_BMP *b, int x, int y, unsigned c);
|
|
|
|
int (* __stdcall gb_pixel_get)(GB_BMP *b, int x, int y, unsigned *c);
|
|
|
|
void (* __stdcall gb_line)(GB_BMP *b, int x1, int y1, int x2, int y2, unsigned c);
|
|
|
|
void (* __stdcall gb_rect)(GB_BMP *b, int x, int y, int w, int h, unsigned c);
|
|
|
|
void (* __stdcall gb_bar)(GB_BMP *b, int x, int y, int w, int h, unsigned c);
|
|
|
|
void (* __stdcall gb_circle)(GB_BMP *b, int x, int y, int r, unsigned c);
|
|
|
|
void (* __stdcall gb_image_set)(GB_BMP *b_dest, int x_d, int y_d, GB_BMP *b_src, int x_s, int y_s, int w, int h);
|
|
|
|
void (* __stdcall gb_image_set_t)(GB_BMP *b_dest, int x_d, int y_d, GB_BMP *b_src, int x_s, int y_s, int w, int h, unsigned c);
|