home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 294.lha / copdis_v0.0a / main.c < prev    next >
C/C++ Source or Header  |  1989-10-08  |  842b  |  38 lines

  1.  
  2. #include <graphics/gfxbase.h>
  3. #include <graphics/view.h>
  4. #include <functions.h>
  5. #include <stdio.h>
  6.  
  7. struct GfxBase *GfxBase = NULL;
  8.  
  9.  
  10. main()
  11. {
  12.     GfxBase = (struct GfxBase *)OpenLibrary("graphics.library",0L); 
  13.  
  14.     if (GfxBase == NULL)
  15.     {
  16.         fprintf(stderr,"couldn't open graphics.library\n");
  17.         exit(1);
  18.     }
  19.  
  20.     printf("GfxBase's copinit list:\n");
  21.     copdis(GfxBase->copinit);
  22.  
  23.     printf("\nTop Viewport's display L instructions:\n");
  24.     copdis(GfxBase->ActiView->ViewPort->DspIns->CopLStart);
  25.  
  26.     printf("\nTop Viewport's display S instructions:\n");
  27.     copdis(GfxBase->ActiView->ViewPort->DspIns->CopSStart);
  28.  
  29.     printf("\nCurrently active LOF copper list:\n");
  30.     copdis(GfxBase->ActiView->LOFCprList->start);
  31.  
  32.     /* only seems to work in Interlace
  33.      * printf("\nCurrently active SHF copper list:\n");
  34.      * copdis(GfxBase->ActiView->SHFCprList->start);
  35.      */
  36. }
  37.  
  38.