home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Washington_1988 / DevCon88.1 / JimmDemos / DemoSource / openg.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  313 b   |  18 lines

  1. /* opengfx.c -- open up graphics    */
  2. /* by Jim Mackraz, 1987.  Placed in the public domain by the author.    */
  3.  
  4. #include <functions.h>
  5. long int    GfxBase = 0;
  6.  
  7. long int
  8. OpenGfx(vers)
  9. {
  10.     return (GfxBase = (long int) OpenLibrary("graphics.library", (long) vers));
  11. }
  12.  
  13. CloseGfx()
  14. {
  15.     if (GfxBase) CloseLibrary(GfxBase);
  16. }
  17.  
  18.