#ifndef IMAGES_PENMAP_H #define IMAGES_PENMAP_H /* ** $VER: penmap.h 47.4 (13.4.2020) ** ** Definitions for the penmap.image BOOPSI class ** ** Copyright (C) 2019-2022 Hyperion Entertainment CVBA. ** Developed under license. */ /*****************************************************************************/ #ifndef REACTION_REACTION_H #include #endif #ifndef INTUITION_IMAGECLASS_H #include #endif /*****************************************************************************/ /* Additional attributes defined by penmap.image */ #define PENMAP_Dummy (REACTION_Dummy + 0x18000) #define PENMAP_SelectBGPen (PENMAP_Dummy + 1) /* (WORD) Selected render background pen. */ #define PENMAP_SelectData (PENMAP_Dummy + 2) /* () Optional renderng data for mode IDS_SELECTED. */ #define PENMAP_RenderBGPen IA_BGPen /* (WORD) Background pen. */ #define PENMAP_RenderData IA_Data /* () rendering data for mode IDS_NORMAL. */ #define PENMAP_Palette (PENMAP_Dummy + 3) /* () OM_NEW/OM_SET/OM_GET palette data. */ #define PENMAP_Screen (PENMAP_Dummy + 4) /* (struct Screen *) Screen this penmap will be displayed in. */ #define PENMAP_ImageType (PENMAP_Dummy + 5) /* (UWORD) Currently Unsupported. */ #define PENMAP_Transparent (PENMAP_Dummy + 6) /* (UWORD) OM_NEW/OM_SET - If set, color entry 0 will map * to screen/window background pen. */ #define PENMAP_Precision (PENMAP_Dummy + 8) /* (UWORD) OM_NEW/OM_SET -ObtainBestPen precision, defaults to PRECISION_IMAGE */ #define PENMAP_ColorMap (PENMAP_Dummy + 9) /* (struct ColorMap *) OM_NEW/OM_SET - ColorMap to use when remapping pens */ #define PENMAP_MaskBlit (PENMAP_Dummy + 10) /* (BOOL) Blit image using blitmask for true transparancy, recommended * when a penmap is used in a layout group for a logo, allowing the backfill * to show thru/around the image. Penmap will automatically create the * required mask plane for you. */ #define PENMAP_Compressed (PENMAP_Dummy + 11) /* (ULONG) Compression type used for image data (V47). * Supported are: cmpNone (default), cmpByteRun1 */ #define PENMAP_MaskPlane (PENMAP_Dummy + 12) /* OS4ONLY */ #define PENMAP_SelectMaskPlane (PENMAP_Dummy + 13) /* OS4ONLY */ /*****************************************************************************/ /* Definitions for PENMAP_ImageType */ #define IMAGE_CHUNKY 0 /* Supported Default */ #define IMAGE_IMAGE 1 /* Currently unsupported. */ #define IMAGE_DRAWLIST 2 /* Currently unsupported. */ /* Macros to extract the source width and height data. */ #ifndef IMAGE_WIDTH #define IMAGE_WIDTH(i) (((UWORD *)(i))[0]) #endif #ifndef IMAGE_HEIGHT #define IMAGE_HEIGHT(i) (((UWORD *)(i))[1]) #endif #endif /* IMAGES_PENMAP_H */