home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Programming / MR_Classes / Dev / Source / tcpalette / Libs.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-11  |  1.3 KB  |  54 lines

  1. #include "private.h"
  2. #include <extras/libs.h>
  3.  
  4. struct ExecBase       *SysBase;
  5. struct GfxBase        *GfxBase;
  6. struct IntuitionBase  *IntuitionBase;
  7. struct Library        *UtilityBase;
  8. struct LocaleBase     *LocaleBase;
  9. struct Library  *BevelBase,
  10.                 *LabelBase,
  11.                 *CyberGfxBase,
  12.                 *DitherRectBase,
  13.                 *KeymapBase;
  14.                             
  15.                 
  16. struct LocaleBase *LocaleBase;
  17.  
  18. struct Libs MyLibs[]=
  19. {
  20.   (APTR *)&CyberGfxBase,  "cybergraphics.library",      39,     OLF_OPTIONAL,
  21.   (APTR *)&GfxBase,       "graphics.library",           39,     0,
  22.   (APTR *)&IntuitionBase, "intuition.library",          39,     0,
  23.   (APTR *)&LocaleBase,    "locale.library",             39,     0,
  24.   (APTR *)&UtilityBase,   "utility.library",            39,     0,
  25.   (APTR *)&KeymapBase,    "keymap.library",            39,     0,
  26.  
  27.  
  28.   (APTR *)&BevelBase,     "images/bevel.image",         44,     0,
  29.   (APTR *)&LabelBase,     "images/label.image",         44,     0,
  30.  
  31.   (APTR *)&DitherRectBase,  "images/mlr_ordered.pattern",    1,     OLF_OPTIONAL,
  32.   0
  33. };
  34.  
  35.                       
  36.                       
  37.  
  38. BOOL i_OpenLibs(void)
  39. {
  40.   ULONG *LongMem=0;
  41.  
  42.   SysBase=(APTR)LongMem[1];
  43.  
  44.      return(ex_OpenLibs(0, "TCPalette.Gadget", 0,0,0, MyLibs));
  45. }
  46.  
  47. void i_CloseLibs(void)
  48. {
  49.   ex_CloseLibs(MyLibs);
  50. }
  51.  
  52.  
  53.  
  54.