home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d536 / chemesthetics.lha / Chemesthetics / Source / Source.LZH / saveiff.h < prev    next >
C/C++ Source or Header  |  1991-06-12  |  4KB  |  104 lines

  1. #define OK 1
  2. #define NOT_OK 0
  3.  
  4. /* -------- stuff for save() (from Commdore IFF Disk Fish 185) ------- */
  5.  
  6. /* For masking unwanted Viewmodes bits */
  7. #define BADFLAGS  (SPRITES|VP_HIDE|GENLOCK_AUDIO|GENLOCK_VIDEO)
  8. #define FLAGMASK  (~BADFLAGS)
  9. #define CAMGMASK  (FLAGMASK & 0x0000FFFFL)
  10.  
  11. /* Other Stuff for saving the picture */
  12. #define bufsize 512
  13.  
  14. #define ifficon_width 80
  15. #define ifficon_height 31
  16. #define ifficon_num_planes 2
  17. #define ifficon_words_per_plane 155
  18.  
  19. #ifdef LATTICE
  20. UWORD chip ifficon_data[] = {
  21. #else
  22. UWORD ifficon_data[] = {
  23. #endif
  24.  
  25. /* Plane 0 */
  26.   0xffff,0xffff,0xffff,0xffff,0xfffe,0x8000,0x0000,0x0000,
  27.   0x0000,0x0001,0xbfff,0xffff,0xffff,0xffff,0xfffd,0xa000,
  28.   0x0000,0x0000,0x01ff,0x8005,0xa000,0x0000,0x0000,0x07ff,
  29.   0xe005,0xa000,0x0000,0x0000,0x0fff,0xf005,0xa000,0x0000,
  30.   0x0000,0x1fff,0xf805,0xa000,0x0000,0x0014,0x1fff,0xf805,
  31.   0xa000,0x0000,0x3510,0x047f,0xf805,0xa000,0x0000,0x8010,
  32.   0x800f,0xf005,0xa000,0x0001,0x0010,0x0187,0xe005,0xa0ff,
  33.   0xe383,0x8600,0x000f,0xff85,0xa3ff,0xff01,0x0008,0x7d01,
  34.   0xffe5,0xa7ff,0xfc30,0x0000,0x2f81,0xfff5,0xa7ff,0xfc10,
  35.   0x2378,0x0011,0xfffd,0xafff,0xff02,0x2000,0x800b,0xfffd,
  36.   0xa7ff,0xfc3f,0xc000,0x210f,0xfffd,0xa7ff,0xfa02,0xe600,
  37.   0x000f,0xfff5,0xa3ff,0xff80,0x0408,0x1d47,0xffe5,0xa0ff,
  38.   0xfff0,0x0000,0x2741,0xff85,0xa007,0xfff8,0x2140,0x60e0,
  39.   0x0005,0xa00f,0xfffe,0x03ff,0x8000,0x0005,0xa00f,0xffff,
  40.   0x4018,0x0000,0x0005,0xa00f,0xfffc,0xe000,0x0000,0x0005,
  41.   0xa00f,0xfffc,0x0000,0x0000,0x0005,0xa007,0xfff8,0x0000,
  42.   0x0000,0x0005,0xa003,0xfff0,0x0000,0x0000,0x0005,0xa000,
  43.   0x7f80,0x0000,0x0000,0x0005,0xbfff,0xffff,0xffff,0xffff,
  44.   0xfffd,0x8000,0x0000,0x0000,0x0000,0x0001,0x7fff,0xffff,
  45.   0xffff,0xffff,0xffff,
  46.  
  47. /* Plane 1 */
  48.   0xffff,0xffff,0xffff,0xffff,0xfffe,0xffff,0xffff,0xffff,
  49.   0xffff,0xfffe,0xffff,0xffff,0xffff,0xffff,0xfffe,0xe000,
  50.   0x0000,0x0000,0x0000,0x0006,0xe000,0x0000,0x0000,0x0000,
  51.   0x0006,0xe000,0x0000,0x0000,0x0000,0x0006,0xe000,0x0000,
  52.   0x0000,0x0008,0x0006,0xe000,0x0000,0x0003,0xe00c,0x0006,
  53.   0xe000,0x0000,0x000f,0xfb80,0x0006,0xe000,0x0000,0x000f,
  54.   0xfff0,0x0006,0xe000,0x0000,0x000f,0xfff8,0x0006,0xe000,
  55.   0x007c,0x060f,0xfff0,0x0006,0xe000,0x00fe,0xf80f,0x82fe,
  56.   0x0006,0xe000,0x03ff,0xfe1f,0xc07e,0x0006,0xe002,0x03ef,
  57.   0xfc07,0xfffe,0x0806,0xe007,0x03fd,0xdf80,0x7ff4,0x0c06,
  58.   0xe000,0x03c0,0x3f80,0x1ff0,0x0006,0xe000,0x05fc,0x1f80,
  59.   0x1ff0,0x0006,0xe000,0x007f,0xfb88,0x0280,0x0006,0xe000,
  60.   0x000f,0xff00,0x0040,0x0006,0xe000,0x0007,0xfe00,0x0000,
  61.   0x0006,0xe000,0x0001,0xfc00,0x0000,0x0006,0xe000,0x0600,
  62.   0xa000,0x0000,0x0006,0xe000,0x0000,0x0000,0x0000,0x0006,
  63.   0xe000,0x0000,0x0000,0x0000,0x0006,0xe000,0x0000,0x0000,
  64.   0x0000,0x0006,0xe000,0x0000,0x0000,0x0000,0x0006,0xe000,
  65.   0x0000,0x0000,0x0000,0x0006,0xffff,0xffff,0xffff,0xffff,
  66.   0xfffe,0xffff,0xffff,0xffff,0xffff,0xfffe,0x0000,0x0000,
  67.   0x0000,0x0000,0x0000
  68. };
  69.  
  70. #define ilbm_size      sizeof(ilbm_data)
  71.  
  72.  struct  Image ilbmimage =
  73.  {
  74.  0,0,
  75.  ifficon_width,ifficon_height,ifficon_num_planes,
  76.  &ifficon_data[0],
  77.  0x03,0x00,
  78.  NULL,
  79.  };
  80.  
  81. struct DiskObject ILBMobject = {
  82.    WB_DISKMAGIC,
  83.    WB_DISKVERSION,
  84.  
  85.    /* Gadget Structure */
  86.    NULL,            /* Ptr to next gadget */
  87.    0,0,             /* Leftedge, Topedge */
  88.    ifficon_width, ifficon_height,       /* Width, Height */
  89.    GADGHCOMP|GADGIMAGE,           /* Flags */
  90.    RELVERIFY|GADGIMMEDIATE, /* Activation */
  91.    BOOLGADGET,            /* Type */
  92.    (APTR)&ilbmimage,        /* Render */
  93.    NULL,            /* Select Render */
  94.    NULL,            /* Text */
  95.    NULL,NULL,NULL,NULL,     /* Exclude, Special, ID, UserData */
  96.  
  97.    WBPROJECT,            /* WBObject type */
  98.    "c:IView",               /* Default tool */
  99.    NULL,            /* Tool Types */
  100.    NO_ICON_POSITION,        /* Current X */
  101.    NO_ICON_POSITION,        /* Current Y */
  102.    NULL,NULL,NULL,        /* Drawer, ToolWindow, Stack */
  103.    };
  104.