home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / Includes_and_Autodocs_3.5 / include / images / penmap.h < prev   
Encoding:
C/C++ Source or Header  |  1999-10-19  |  2.4 KB  |  86 lines

  1. #ifndef IMAGES_PENMAP_H
  2. #define IMAGES_PENMAP_H
  3. /*
  4. **    $VER: penmap.h 44.1 (19.10.1999)
  5. **    Includes Release 44.1
  6. **
  7. **  Definitions for the penmap.image BOOPSI class
  8. **
  9. **
  10. **    (C) Copyright 1987-1999 Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. /*****************************************************************************/
  15.  
  16. #ifndef REACTRION_REACTION_H
  17. #include <reaction/reaction.h>
  18. #endif
  19.  
  20. #ifndef INTUITION_IMAGECLASS_H
  21. #include <intuition/imageclass.h>
  22. #endif
  23.  
  24. /*****************************************************************************/
  25.  
  26. /* Additional attributes defined by penmap.image
  27.  */
  28. #define PENMAP_Dummy            (REACTION_Dummy + 0x18000)
  29.  
  30. #define PENMAP_SelectBGPen        (PENMAP_Dummy + 1)
  31.     /* (WORD) Selected render background pen. */
  32.  
  33. #define PENMAP_SelectData        (PENMAP_Dummy + 2)
  34.     /* () Optional renderng data for mode IDS_SELECTED. */
  35.  
  36. #define PENMAP_RenderBGPen        IA_BGPen
  37.     /* (WORD) Background pen. */
  38.  
  39. #define PENMAP_RenderData        IA_Data
  40.     /* () rendering data for mode IDS_NORMAL. */
  41.  
  42. #define PENMAP_Palette            (PENMAP_Dummy + 3)
  43.     /* () OM_NEW/OM_SET/OM_GET palette data. */
  44.  
  45. #define PENMAP_Screen            (PENMAP_Dummy + 4)
  46.     /* (struct Screen *) Screen this penmap will be displayed in. */
  47.  
  48. #define PENMAP_ImageType        (PENMAP_Dummy + 5)
  49.     /* (UWORD) Currently Unsupported. */
  50.  
  51. #define PENMAP_Transparent        (PENMAP_Dummy + 6)
  52.     /* (UWORD) OM_NEW/OM_SET - If set, color entry 0 will map
  53.      * to screen/window background pen. */
  54.  
  55. #define PENMAP_Precision        (PENMAP_Dummy + 8)
  56.     /* (UWORD) OM_NEW/OM_SET -ObtainBestPen precision, defaults to PRECISION_IMAGE */
  57.  
  58. #define PENMAP_ColorMap            (PENMAP_Dummy + 9)
  59.     /* (struct ColorMap *) OM_NEW/OM_SET - ColorMap to use when remapping pens */
  60.  
  61. #define PENMAP_MaskBlit            (PENMAP_Dummy + 10)
  62.     /* (BOOL) Blit image using blitmask for true transparancy, recommended
  63.      * when a penmap is used in a layout group for a logo, allowing the backfill
  64.      * to show thru/around the image. Penmap will automatically create the
  65.      * required mask plane for you.
  66.      */
  67.  
  68. /*****************************************************************************/
  69.  
  70. /* Definitions for PENMAP_ImageType
  71.  */
  72. #define IMAGE_CHUNKY    0    /* Supported Default */
  73. #define IMAGE_IMAGE        1    /* Currently unsupported. */
  74. #define IMAGE_DRAWLIST    2    /* Currently unsupported. */
  75.  
  76. /* Macros to extract the source width and height data.
  77.  */
  78. #ifndef IMAGE_WIDTH
  79. #define IMAGE_WIDTH(i)     (((UWORD *)(i))[0])
  80. #endif
  81. #ifndef IMAGE_HEIGHT
  82. #define IMAGE_HEIGHT(i)    (((UWORD *)(i))[1])
  83. #endif
  84.  
  85. #endif /* IMAGES_PENMAP_H */
  86.