2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
9 #include <hidd/graphics.h>
13 This attribute interface is common for both vga onscreen and offscreen bitmap
14 classes, although they don't have a common superclass
17 #define IID_Hidd_VesaGfxBitMap "hidd.bitmap.vesabitmap"
19 #define HiddVesaGfxBitMapAttrBase __abHidd_VesaGfxBitMap
21 /* extern OOP_AttrBase HiddVesaGfxBitMapAttrBase; */
25 aoHidd_VesaGfxBitMap_Drawable
,
26 num_Hidd_VesaGfxBitMap_Attrs
29 #define aHidd_VesaGfxBitMap_Drawable (HiddVesaGfxBitMapAttrBase + aoHidd_VesaGfxBitMap_Drawable)
33 /* This structure is used for both onscreen and offscreen VGA bitmaps !! */
35 #define IS_BM_ATTR(attr, idx) ( ( (idx) = (attr) - HiddBitMapAttrBase) < num_Hidd_BitMap_Attrs)
36 #define IS_VesaGfxBM_ATTR(attr, idx) ( ( (idx) = (attr) - HiddVesaGfxBitMapAttrBase) < num_Hidd_VesaGfxBitMap_Attrs)
40 This structure is used as instance data for both the
41 onbitmap and offbitmap classes.
49 UBYTE
*VideoData
; /* Pointing to video data */
50 ULONG width
; /* Width of bitmap */
51 ULONG height
; /* Height of bitmap */
54 ULONG cmap
[256]; /* ColorMap */
55 BYTE bpp
; /* 8 -> chunky; planar otherwise */
56 BYTE disp
; /* !=0 - displayable */
57 struct MouseData
*mouse
;
58 OOP_Object
*pixfmtobj
;
68 #endif /* _BITMAP_H */