place-holder for restructure
[AROS.git] / arch / arm-raspi / hidd.videocoregfx / videocoregfx_bitmap.h
blob4947f723e9fef81eba90353651aad13897d74873
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved.
3 $Id$
4 */
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"
17 enum {
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. */
32 struct Box
34 int x1, y1;
35 int x2, y2;
38 struct BitmapData {
39 APTR data;
40 UBYTE *VideoData; /* Pointing to video data */
41 ULONG width; /* Width of bitmap */
42 ULONG height; /* Height of bitmap */
43 UBYTE bytesperpix;
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 */