home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 1: Collection A / 17Bit_Collection_A.iso / files / 1112.dms / 1112.adf / ImageEd / Source / ImageEd.c < prev    next >
C/C++ Source or Header  |  1988-07-25  |  2KB  |  70 lines

  1. /*
  2.    ImageEd.c - Source for an editor for Image-Data
  3.                Output to a binary-file as plane-data & info
  4.                or as C-source-code.
  5.  
  6.    (c)1990 Olaf Leimann
  7. */
  8. #define  INTUITIONPRIVATE 1
  9. #include <exec/types.h>
  10. #include <exec/memory.h>
  11. #include <intuition/intuitionbase.h>
  12. #include <proto/exec.h>
  13. #include <proto/dos.h>
  14. #include <proto/graphics.h>
  15. #include <proto/intuition.h>
  16. #include <string.h>
  17.  
  18. struct GfxBase       *GfxBase ;
  19. struct IntuitionBase *IntuitionBase ;
  20.  
  21. #include "ImageMenu.M.h"
  22. #include "ImageWindow.h"
  23. #include "ImageRout.c"
  24.  
  25. USHORT chip MyPointer[] = {
  26. /*#FOLD:*/
  27.    0x0000,0x0000,    /* one word each for position and control */
  28.  
  29.    0x0000,0x0380,
  30.    0x0100,0x0380,
  31.    0x0100,0x0380,
  32.    0x0100,0x0380,
  33.    0x0100,0x0380,
  34.    0x0100,0x0380,
  35.    0x0000,0xFC7E,
  36.    0x3C78,0xFC7E,
  37.    0x0000,0xFC7E,
  38.    0x0100,0x0380,
  39.    0x0100,0x0380,
  40.    0x0100,0x0380,
  41.    0x0100,0x0380,
  42.    0x0100,0x0380,
  43.    0x0000,0x0380,
  44.  
  45.    0x0000,0x0000     /* End of sprite */
  46. /*#ENDFD*/
  47. };
  48.  
  49. main()
  50. {
  51.    struct Window *win ;
  52.  
  53.    IntuitionBase = (struct IntuitionBase *)OpenLibrary(
  54.       "intuition.library",0L);
  55.    if(IntuitionBase){
  56.       GfxBase = IntuitionBase->GfxBase ;
  57.       win=OpenWindow(&ImageWindow);
  58.       if(win){
  59.          SetMenuStrip(win,&MainMenu);
  60.          SetPointer(win,&MyPointer[0],15,15,-8,-7);
  61.          HandleImaging(win);
  62.          ClearPointer(win);
  63.          ClearMenuStrip(win);
  64.          CloseWindow(win);
  65.       }
  66.       CloseLibrary((struct Library *)IntuitionBase);
  67.    }
  68. }
  69.  
  70.