home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga ISO Collection
/
AmigaUtilCD2.iso
/
Programming
/
Misc
/
M2V11-2.LHA
/
modula
/
dice
/
dice.lha
/
dynamic
/
dynamic.lha
/
objsrc
/
libs
/
graphics.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-04-29
|
434 b
|
34 lines
/*
* GRAPHICS.C graphics.library support
*/
#include <exec/types.h>
#include <exec/libraries.h>
#include <clib/exec_protos.h>
typedef struct Library Library;
#define LIBBASE hyper_GfxBase
#define LIBNAME "graphics.library"
Library *LIBBASE;
long
_auto_start()
{
if (LIBBASE = OpenLibrary(LIBNAME, 0))
return(1);
return(0);
}
void
_auto_exit()
{
if (LIBBASE) {
CloseLibrary(LIBBASE);
LIBBASE = NULL;
}
}