home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 216.lha / IFFLib / ifflib.h < prev    next >
C/C++ Source or Header  |  1996-02-15  |  2KB  |  68 lines

  1. #ifndef IFFLIB_H
  2. #define IFFLIB_H 1
  3.  
  4. /* masking */
  5. #define mskNone                0
  6. #define mskHasMask             1
  7. #define mskHasTransparentColor 2
  8. #define mskLasso               3
  9.  
  10. /* aspect */
  11. #define x320x200Aspect 10
  12. #define y320x200Aspect 11
  13. #define x320x400Aspect 20
  14. #define y320x400Aspect 11
  15. #define x640x200Aspect 5
  16. #define y640x200Aspect 11
  17. #define x640x400Aspect 10
  18. #define y640x400Aspect 11
  19.  
  20. /* compression */
  21. #define cmpNone     0
  22. #define cmpByteRun1 1
  23.  
  24. typedef struct
  25.    {
  26.    unsigned short w, h;       /* width, height */
  27.    unsigned short x, y;       /* position */
  28.    unsigned char nPlanes;     /* number of bit-planes */
  29.    unsigned char masking;     /* type of masking used */
  30.    unsigned char compression; /* type of compression used */
  31.    unsigned char pad1;
  32.    unsigned short transparentColor;
  33.    unsigned char xAspect, yAspect;       /* aspect ration */
  34.    unsigned short pageWidth, pageHeight; /* size of the screen */
  35.    } BitMapHeader;
  36.  
  37. /* error codes */
  38. #define NO_ERROR 0
  39. #define YOUR_ERROR 1
  40. #define OPEN_ERROR 2
  41. #define FILE_WAS_CLOSED 3
  42. #define SEEK_ERROR 4
  43. #define READ_ERROR 5
  44. #define MEMORY_ERROR 6
  45. #define IFFBAD_ERROR 7
  46. #define WIERD_MASKING 8
  47. #define WIERD_COMPRESSION 9
  48. #define COMPRESSION_ERROR 10
  49. #define IFF_TO_BIG 11
  50. #define UNKNOWN_ERROR -1
  51.  
  52. /* library name */
  53. #define IFFNAME "iff.library"
  54.  
  55. /* memory types */
  56. #define DONTCARE ((unsigned short)0)
  57. #define CHIP ((unsigned short)1)
  58. #define FAST ((unsigned short)2)
  59.  
  60. #define ALLOC ((unsigned short)1)
  61. #define NOALLOC ((unsigned short)0)
  62.  
  63. /* functions */
  64. extern void *IFFalloc(), IFFfree(), RlsImage(), RlsBitMap();
  65. extern short QueryIFF(), GetIFF_bitmap(), GetIFF_image();
  66.  
  67. #endif
  68.