home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 505b.lha / Ham_e_library / HameStruct.h < prev    next >
C/C++ Source or Header  |  1991-05-05  |  3KB  |  100 lines

  1. #ifndef EXEC_TYPES_H
  2. #include <exec/types.h>
  3. #endif /* EXEC_TYPES_H */
  4.  
  5. #ifndef GRAPHICS_GFX_H
  6. #include <graphics/gfx.h>
  7. #endif /* GRAPHICS_GFX_H */
  8.  
  9. #ifndef GRAPHICS_GFX_H
  10. #include <graphics/view.h>
  11. #endif /* GRAPHICS_GFX_H */
  12.  
  13. #ifndef GRAPHICS_GFX_H
  14. #include <graphics/text.h>
  15. #endif /* GRAPHICS_GFX_H */
  16.  
  17. #ifndef GRAPHICS_GFX_H
  18. #include <graphics/rastport.h>
  19. #endif /* GRAPHICS_GFX_H */
  20.  
  21. #ifndef INTUITION_INTUITION_H
  22. #include <intuition/intuition.h>
  23. #endif /* INTUITION_INTUITION_H */
  24.  
  25. struct ExtendedTextFont {
  26.        /* ctf_TF.CharData should be plane 0 of colordata*/
  27.        /* ctf_TF.Style should have FSF_COLORFONT bit set */
  28.     struct TextFont ctf_TF;
  29.  
  30.     USHORT ctf_Flags; /* Extended TextFont prefs. See defines above */
  31.  
  32.     UBYTE  ctf_Depth; /* # Bitplanes in font */
  33.     UBYTE  ctf_FgColor; /* Colr to be remapped to FG Pen-Ignore for us */
  34.     UBYTE  ctf_Low;     /* Lowest color in extended TextFont */
  35.     UBYTE  ctf_Hi;      /* Lowest color in extended TextFont */
  36.     UBYTE ctf_PlanePick;
  37.     UBYTE ctf_PlaneOnOff;
  38.     struct ColorMap *ctf_ColorMap;
  39.     UBYTE  *ctf_CharData[8]; /* Room for eight bitplanes of CharData */
  40. };
  41.  
  42. struct HameFont
  43.   {
  44.     struct ExtendedTextFont *Font;
  45.     UWORD P0Bits[256];
  46.     UWORD P1Bits[256];
  47.     UWORD P2Bits[256];
  48.     UWORD P3Bits[256];
  49.     long NColors;
  50.     long BaseColor;
  51.     long BaseLine;
  52.   };
  53.  
  54. struct Clip
  55.   {
  56.     struct BitMap *BitMap;
  57.     UBYTE *Mask;
  58.     long Width, Height;
  59.   };
  60.  
  61. struct HamePort
  62.  {
  63.    unsigned char *bp0; /* Cached bitplane pointers - no lectures please! */
  64.    unsigned char *bp1;
  65.    unsigned char *bp2;
  66.    unsigned char *bp3;
  67.    struct Screen *Screen; /* Cached Screen pointer */
  68.    struct Window *Window; /* Window pointer for screens opened by this library */
  69.    int BytesPerRow; /* from Screens bitmap */
  70.    int Width;       /* This is the HAME pixel width */
  71.    int Rows;        /* # of rows including cookie */
  72.    int lacer;       /* interlace flag */
  73.    int scanbase;    /* First scanline of cookie regardless of flavour */
  74.    int x,y;         /* Do Not Touch */
  75.    int r,g,b;       /* red, green and blue values filled in by GetRGB8 */
  76.    int FgColor;     /* Foreground Pen Color - DO NOT SET THIS YOURSELF!! */
  77.    ULONG *line_bases; /* Do Not Touch */
  78.    int firstline;   /* first line of writeable graphics data */
  79.    int hame_mode;   /* 0 for register mode, 1 for hame mode */
  80.    struct HameFont *Font;  /* Font pointer */
  81.    int TextColor;   /* Do Not Touch */
  82.    struct RastPort *RastPort; /* Do Not Touch */
  83.    UWORD *abuff;    /* Do Not Touch */
  84.    UBYTE *rastmem;  /* Do Not Touch */
  85.    struct BitMap *BitMap; /* Do Not Touch */
  86.    struct Layer_Info *LayerInfo; /* Do Not Touch */
  87.    struct Layer *Layer; /* Do Not Touch */
  88.    UWORD *fillpat; /* Do Not Touch */
  89.    void *bt; /* Do Not Touch */
  90.    struct AreaInfo *AreaInfo; /* Do Not Touch */
  91.    struct TmpRas *TmpRas; /* Do Not Touch */
  92.    int BgColor; /* Background Pen Color - DO NOT SET THIS YOURSELF */
  93.    int MaxV; /* Do Not Touch */
  94.    int MaxX; /* Do Not Touch */
  95.    int MaxY; /* Do Not Touch */
  96.    int PenX; /* Do Not Touch */
  97.    int PenY; /* Do Not Touch */
  98.    struct RastPort *TxRast; /* Do Not Touch */
  99.  };
  100.