home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Graphics / GraphicsWorkshop / Source / Converters / IFF_SCRATCH / ilbm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-21  |  696 b   |  37 lines

  1. /* ilbm.h - header file for IFF ILBM files
  2. */
  3.  
  4. #define RowBytes(cols)        ( ( ( (cols) + 15 ) / 16 ) * 2 )
  5.  
  6. /* definitions for BMHD */
  7.  
  8. typedef struct
  9.     {
  10.     unsigned short w, h;
  11.     short x, y;
  12.     unsigned char nPlanes, masking, compression, pad1;
  13.     unsigned short transparentColor;
  14.     unsigned char xAspect, yAspect;
  15.     short pageWidth, pageHeight;
  16.     } BitMapHeader;
  17.  
  18. #define mskNone            0
  19. #define mskHasMask        1
  20. #define mskHasTransparentColor    2
  21. #define mskLasso        3
  22.  
  23. #define cmpNone            0
  24. #define cmpByteRun1        1
  25.  
  26. /* definitions for CMAP */
  27.  
  28. typedef struct
  29.     {
  30.     unsigned char r, g, b;
  31.     } ColorRegister;
  32.  
  33. /* definitions for CAMG */
  34.  
  35. #define    vmEXTRA_HALFBRITE    0x80
  36. #define    vmHAM            0x800
  37.