wip prep commit in lieu of gfx subsystem update changes, part 2.
[AROS.git] / rom / hidds / vesagfx / vesagfx_bitmap.h
blob52aa2c03908c552ae7b6b10c62c3ffa2e2edfd8a
1 /*
2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef VESAGFX_BITMAP_H
7 #define VESAGFX_BITMAP_H
9 #include <hidd/gfx.h>
11 #define CLID_Hidd_BitMap_VESA "hidd.bitmap.vesa"
12 #define IID_Hidd_BitMap_VESA "hidd.bitmap.vesa"
14 #define IS_BM_ATTR(attr, idx) ( ( (idx) = (attr) - HiddBitMapAttrBase) < num_Hidd_BitMap_Attrs)
17 This structure is used as instance data for the bitmap class.
19 struct VESAGfxBitMapData
21 UBYTE *VideoData; /* Pointing to video data */
22 LONG width; /* Bitmap size */
23 LONG height;
24 UBYTE bytesperpix;
25 ULONG bytesperline;
26 UBYTE * DAC; /* Hardware palette registers */
27 BYTE bpp; /* Cached bits per pixel */
28 BYTE disp; /* !=0 - displayable */
29 OOP_Object *pixfmtobj; /* Cached pixelformat object */
30 OOP_Object *gfxhidd; /* Cached driver object */
31 LONG disp_width; /* Display size */
32 LONG disp_height;
33 LONG xoffset; /* Bitmap offset */
34 LONG yoffset;
37 #endif /* VESAGFX_BITMAP_H */