2 Copyright © 2013, The AROS Development Team. All rights reserved.
6 #ifndef _VIDEOCOREGFX_BITMAP_H
7 #define _VIDEOCOREGFX_BITMAP_H
9 #include <hidd/graphics.h>
11 /* This attribute interface is common for both onscreen and offscreen bitmap
12 classes, although they don't share a common superclass */
14 #define IID_Hidd_VideoCoreGfxBitMap "hidd.bitmap.videocore"
18 aoHidd_VideoCoreGfxBitMap_Drawable
,
19 num_Hidd_VideoCoreGfxBitMap_Attrs
22 #define aHidd_VideoCoreGfxBitMap_Drawable (HiddVideoCoreGfxBitMapAttrBase + aoHidd_VideoCoreGfxBitMap_Drawable)
24 /* This structure is used for both onscreen and offscreen bitmaps !! */
26 #define IS_BM_ATTR(attr, idx) ( ( (idx) = (attr) - HiddBitMapAttrBase) < num_Hidd_BitMap_Attrs)
27 #define IS_VideoCoreGfxBM_ATTR(attr, idx) ( ( (idx) = (attr) - HiddVideoCoreGfxBitMapAttrBase) < num_Hidd_VideoCoreGfxBitMap_Attrs)
29 /* This structure is used as instance data for both the
30 onbitmap and offbitmap classes. */
40 UBYTE
*VideoData
; /* Pointing to video data */
41 ULONG width
; /* Width of bitmap */
42 ULONG height
; /* Height of bitmap */
44 ULONG cmap
[16]; /* ColorMap */
45 BYTE bpp
; /* 8 -> chunky; planar otherwise */
46 BYTE disp
; /* !=0 - displayable */
47 struct MouseData
*mouse
;
50 #endif /* _VIDEOCOREGFX_BITMAP_H */