home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / fractal / fcloud.arc / i_sup.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-05  |  660 b   |  30 lines

  1. #include <exec/types.h>
  2. #include <intuition/intuition.h>
  3.  
  4. struct IntuitionBase *IntuitionBase;
  5. struct GfxBase *GfxBase;
  6.  
  7. #define INTUITION_REV 33
  8. #define GRAPHICS_REV 33
  9.  
  10. /* Open_All() sets up the intuition environment for the user */
  11.  
  12. void Open_All(void)
  13. {
  14.     IntuitionBase = (struct IntuitionBase *)
  15.                     OpenLibrary("intuition.library",INTUITION_REV);
  16.     if(IntuitionBase == NULL) 
  17.         exit(FALSE);
  18.     GfxBase = (struct GfxBase *)
  19.                     OpenLibrary("graphics.library",GRAPHICS_REV);
  20.     if(GfxBase == NULL)
  21.         exit(FALSE);
  22. }
  23.  
  24. /* Close_All() closes all the libraries that Open_All() opens */
  25.  
  26. void Close_All(void)
  27. {
  28.     CloseLibrary(IntuitionBase);
  29.     CloseLibrary(GfxBase);
  30. }