home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / new / gfx / edit / tsmorph / iffp / ilbmapp.h < prev    next >
C/C++ Source or Header  |  1993-12-21  |  2KB  |  69 lines

  1.  
  2. /* ilbmapp.h
  3.  * - definition of ILBMInfo structure
  4.  * - inclusion of includes needed by modules and application
  5.  * - application-specific definitions
  6.  *
  7.  * 07/03/91 - added ilbm->stags for screen.c
  8.  */
  9. #ifndef ILBMAPP_H
  10. #define ILBMAPP_H
  11.  
  12. #include "iffp/ilbm.h"
  13.  
  14. struct ILBMInfo {
  15.     /* general parse.c related */
  16.     struct  ParseInfo ParseInfo;
  17.  
  18.     /* The following variables are for
  19.      * programs using the ILBM-related modules.
  20.      * They may be removed or replaced for
  21.      * programs parsing other forms.
  22.      */
  23.     /* ILBM */
  24.     BitMapHeader Bmhd;        /* filled in by load and save ops */
  25.     ULONG    camg;            /* filled in by load and save ops */
  26.     Color4    *colortable;        /* allocated by getcolors */
  27.     UBYTE *RGB;                /* RGB colors */ // MJP
  28.     ULONG    ctabsize;        /* size of colortable in bytes */
  29.     USHORT    ncolors;        /* number of color registers loaded */
  30.     USHORT  Reserved1;
  31.  
  32.     /* for getbitmap.c */
  33.     struct BitMap *brbitmap;    /* for loaded brushes only */
  34.  
  35.     /* for screen.c */
  36.     struct Screen *scr;        /* screen of loaded display   */
  37.     struct Window *win;        /* window of loaded display   */
  38.     struct ViewPort *vp;        /* viewport of loaded display */
  39.     struct RastPort    *srp;        /* screen's rastport */
  40.     struct RastPort *wrp;        /* window's rastport */
  41.     BOOL TBState;            /* state of titlebar hiddenness */
  42.  
  43.     /* caller preferences */
  44.     struct NewWindow *windef;    /* definition for window */
  45.     UBYTE *stitle;        /* screen title */
  46.     LONG stype;        /* additional screen types */
  47.     WORD ucliptype;        /* overscan display clip type */
  48.     BOOL EHB;        /* default to EHB for 6-plane/NoCAMG */
  49.     BOOL Video;        /* Max Video Display Clip (non-adjustable) */
  50.     BOOL Autoscroll;    /* Enable Autoscroll of screens */
  51.     BOOL Notransb;        /* Borders not transparent to genlock */
  52.     ULONG *stags;        /* Additional screen tags for 2.0 screens  */
  53.     ULONG IFFPFlags;    /* For CBM-designated use by IFFP modules  */
  54.     APTR  *IFFPData;    /* For CBM-designated use by IFFP modules  */
  55.     ULONG UserFlags;    /* For use by applications for any purpose */
  56.     APTR  *UserData;    /* For use by applications for any purpose */
  57.     ULONG Reserved[3];    /* must be 0 for now */
  58.  
  59.     /* Application-specific variables may go here */
  60.     };
  61.  
  62. /* referenced by modules */
  63.  
  64. extern struct Library *IFFParseBase;
  65.  
  66. /* protos for application module(s) */
  67.  
  68. #endif
  69.