#ifndef INC_BITMAP
#define INC_BITMAP
typedef struct bitmap_stuff BMP;
struct bitmap_stuff
{
BMP *next;
BMP *prev;
HBITMAP bitmap;
int width;
int height;
char *name;
};
HDC memDC;
HBITMAP memBitmap;
void FreeBitmap( BMP *Bitmap );
void Draw(BMP *bitmap, HDC hDC, int x, int y, bool trans, bool stretch);
BMP *get_bmp( char *name );
BMP * bitmap_from_file(HINSTANCE hIntsance, LPCTSTR name);
BMP * bitmap_from_generic(HDC hDC, int iWidth, int iHeight, COLORREF crColor, char *name, bool link);
void DrawTransparentBitmap(HDC hdc, HBITMAP hBitmap, int xStart, int yStart, int xpart, int ypart, int width, int height, COLORREF cTransparentColor);
#endif