rename the directory
[AROS.git] / workbench / hidds / sm502 / bitmap.h
blob50b25c48f67844aebe5627555dcdb1eca043da97
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef _BITMAP_H
7 #define _BITMAP_H
9 #include <hidd/graphics.h>
11 #define IS_BM_ATTR(attr, idx) ( ( (idx) = (attr) - HiddBitMapAttrBase) < num_Hidd_BitMap_Attrs)
14 This structure is used as instance data for the bitmap class.
16 struct BitmapData
18 UBYTE *VideoData; /* Pointing to video data */
19 LONG width; /* Bitmap size */
20 LONG height;
21 UBYTE bytesperpix;
22 ULONG bytesperline;
23 UBYTE * DAC; /* Hardware palette registers */
24 BYTE bpp; /* Cached bits per pixel */
25 BYTE disp; /* !=0 - displayable */
26 OOP_Object *pixfmtobj; /* Cached pixelformat object */
27 OOP_Object *gfxhidd; /* Cached driver object */
28 LONG disp_width; /* Display size */
29 LONG disp_height;
30 LONG xoffset; /* Bitmap offset */
31 LONG yoffset;
34 #endif /* _BITMAP_H */