home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Reference_Library / Devices / iffp / ilbmapp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-21  |  1.9 KB  |  65 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.     ULONG    ctabsize;        /* size of colortable in bytes */
  28.     USHORT    ncolors;        /* number of color registers loaded */
  29.     USHORT  Reserved1;
  30.  
  31.     /* for getbitmap.c */
  32.     struct BitMap *brbitmap;    /* for loaded brushes only */
  33.  
  34.     /* for screen.c */
  35.     struct Screen *scr;        /* screen of loaded display   */
  36.     struct Window *win;        /* window of loaded display   */
  37.     struct ViewPort *vp;        /* viewport of loaded display */
  38.     struct RastPort    *srp;        /* screen's rastport */
  39.     struct RastPort *wrp;        /* window's rastport */
  40.     BOOL TBState;            /* state of titlebar hiddenness */
  41.  
  42.     /* caller preferences */
  43.     struct NewWindow *windef;    /* definition for window */
  44.     UBYTE *stitle;        /* screen title */
  45.     LONG stype;        /* additional screen types */
  46.     WORD ucliptype;        /* overscan display clip type */
  47.     BOOL EHB;        /* default to EHB for 6-plane/NoCAMG */
  48.     BOOL Video;        /* Max Video Display Clip (non-adjustable) */
  49.     BOOL Autoscroll;    /* Enable Autoscroll of screens */
  50.     BOOL Notransb;        /* Borders not transparent to genlock */
  51.     ULONG *stags;        /* Additional screen tags for 2.0 screens */
  52.  
  53.     ULONG Reserved[7];    /* must be 0 for now */
  54.  
  55.     /* Application-specific variables may go here */
  56.     };
  57.  
  58. /* referenced by modules */
  59.  
  60. extern struct Library *IFFParseBase;
  61.  
  62. /* protos for application module(s) */
  63.  
  64. #endif
  65.