1 #ifndef IMAGES_PENMAP_H
    2 #define IMAGES_PENMAP_H
    3 
    4 /*
    5 	penmap.image definitions (V45)
    6 
    7 	Copyright © 2002 The MorphOS Development Team, All Rights Reserved.
    8 */
    9 
   10 #ifndef REACTION_REACTION_H
   11 # include <reaction/reaction.h>
   12 #endif
   13 
   14 #ifndef INTUITION_IMAGECLASS_H
   15 # include <intuition/imageclass.h>
   16 #endif
   17 
   18 
   19 /* Attributes defined by penmap.image */
   20 
   21 #define PENMAP_Dummy        (REACTION_Dummy + 0x18000)
   22 #define PENMAP_SelectBGPen  (PENMAP_Dummy + 1)
   23 #define PENMAP_SelectData   (PENMAP_Dummy + 2)
   24 #define PENMAP_RenderBGPen  (IA_BGPen)
   25 #define PENMAP_RenderData   (IA_Data)
   26 #define PENMAP_Palette      (PENMAP_Dummy + 3)
   27 #define PENMAP_Screen       (PENMAP_Dummy + 4)
   28 #define PENMAP_ImageType    (PENMAP_Dummy + 5)
   29 #define PENMAP_Transparent  (PENMAP_Dummy + 6)
   30 #define PENMAP_Precision    (PENMAP_Dummy + 8)
   31 #define PENMAP_ColorMap     (PENMAP_Dummy + 9)
   32 #define PENMAP_MaskBlit     (PENMAP_Dummy + 10)
   33 
   34 
   35 /* PENMAP_ImageType types */
   36 
   37 #define IMAGE_CHUNKY    0
   38 #define IMAGE_IMAGE     1
   39 #define IMAGE_DRAWLIST  2
   40 
   41 
   42 /* Useful macros */
   43 
   44 #ifndef IMAGE_WIDTH
   45 # define IMAGE_WIDTH(i)  (((UWORD *)(i))[0])
   46 #endif
   47 
   48 #ifndef IMAGE_HEIGHT
   49 # define IMAGE_HEIGHT(i)  (((UWORD *)(i))[1])
   50 #endif
   51 
   52 
   53 #endif /* IMAGES_PENMAP_H */