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

  1. /************************************************************************
  2.  *                                    *
  3.  * clear.h                                *
  4.  *                                    *
  5.  * Version 1.00 (15-Aug-1993)                                           *
  6.  *                                                                      *
  7.  * clear format                                *
  8.  * ===== ======                                *
  9.  *                                    *
  10.  *         1) clear header                        *
  11.  *         2) IF   1<=bpp<=8 2^bpp palette entries, 3 bytes each R,G,B    *
  12.  *            ELSE           no palette data                *
  13.  *         3) Pixel values, left->right top->bottom            *
  14.  *            IF   1<=bpp<=8 pixel is 1 byte, palette index        *
  15.  *            ELSE           pixel is 3 bytes, R,G,B            *
  16.  *                                    *
  17.  ************************************************************************/
  18.  
  19.  
  20. #define clear_filetype 0x690;
  21.  
  22. /* structure follows creator or comment string (zero terminated any length) */
  23.  
  24. typedef struct {
  25.         int     version;        /* version number *100          */
  26.         int     width;          /* width in pixels              */
  27.         int     height;         /* height in pixels             */
  28.         int     bpp;            /* bits per pixel 1-8,9-24      */
  29. } clear_hdr;
  30.  
  31. int clear_hdr_descr[] = { 4, 4,4, 4, -1 };
  32.  
  33.