Listing 1: Die notwendigen Interfaces öffnen. /* OeffneInterface.c */ #include #include struct GraphicsBase *GraphicsBase; struct GraphicsIFace *IGraphics; int main() { if((GraphicsBase = (struct GraphicsBase *) IExec->OpenLibrary("graphics.library",50))) { if((IGraphics = (struct GraphicsIFace *) IExec->GetInterface((struct Library *)GraphicsBase,"main",1,NULL))) { /* Funktionen der graphics.library stehen für */ /*PPC Programme zur Verfügung */ IGraphics->WaitTOF(); IExec->DropInterface((struct Interface *)IGraphics); } else IDOS->Printf("kein main Interface in der graphics.library\n"); IExec->CloseLibrary((struct Library *)GraphicsBase); } else IDOS->Printf("es fehlt graphics.library V50\n"); return( 0 ); }