home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / utilities / utilss / sprtools / h / tga < prev    next >
Text File  |  1994-07-18  |  2KB  |  31 lines

  1. /************************************************************************
  2.  *                                                                      *
  3.  * tga.h                                *
  4.  *                                                                      *
  5.  * TGA image format header structure                    *
  6.  *                                                                      *
  7.  * Version 2.10 (22-Aug-1993)                                           *
  8.  *                                                                      *
  9.  ************************************************************************/
  10.  
  11.  
  12. typedef struct
  13. {
  14.         BYTE    IDLength;               /* 0                              */
  15.         BYTE    MapType;                /* 0 = no map, 1 = map            */
  16.         BYTE    ImageType;              /* 1 = mapped, 2 = not mapped,    */
  17.                                         /* bit 3 set = Compressed         */
  18.         WORD    MapInfoOrgin;           /* 0                              */
  19.         WORD    MapInfoLength;          /* number of map entries          */
  20.         BYTE    MapInfoWidth;           /* size of map entries 16,24      */
  21.         WORD    ImageInfoX;             /* Stored X position              */
  22.         WORD    ImageInfoY;             /* Stored Y position              */
  23.         WORD    ImageInfoDX;            /* X size of image                */
  24.         WORD    ImageInfoDY;            /* Y size of image                */
  25.         BYTE    ImageInfoDepth;         /* Bits per pixel 8,16,24         */
  26.         BYTE    ImageInfoAttrib;        /* Bit 5: 0=invert Y, 1=normal Y  */
  27. } tga_hdr_str;
  28.  
  29. int tga_hdr_descr[] = { 1,1,1, 2,2, 1, 2,2,2,2, 1,1, -1 };
  30.  
  31.