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 >
Wrap
C/C++ Source or Header
|
1988-07-25
|
2KB
|
70 lines
/*
ImageEd.c - Source for an editor for Image-Data
Output to a binary-file as plane-data & info
or as C-source-code.
(c)1990 Olaf Leimann
*/
#define INTUITIONPRIVATE 1
#include <exec/types.h>
#include <exec/memory.h>
#include <intuition/intuitionbase.h>
#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/graphics.h>
#include <proto/intuition.h>
#include <string.h>
struct GfxBase *GfxBase ;
struct IntuitionBase *IntuitionBase ;
#include "ImageMenu.M.h"
#include "ImageWindow.h"
#include "ImageRout.c"
USHORT chip MyPointer[] = {
/*#FOLD:*/
0x0000,0x0000, /* one word each for position and control */
0x0000,0x0380,
0x0100,0x0380,
0x0100,0x0380,
0x0100,0x0380,
0x0100,0x0380,
0x0100,0x0380,
0x0000,0xFC7E,
0x3C78,0xFC7E,
0x0000,0xFC7E,
0x0100,0x0380,
0x0100,0x0380,
0x0100,0x0380,
0x0100,0x0380,
0x0100,0x0380,
0x0000,0x0380,
0x0000,0x0000 /* End of sprite */
/*#ENDFD*/
};
main()
{
struct Window *win ;
IntuitionBase = (struct IntuitionBase *)OpenLibrary(
"intuition.library",0L);
if(IntuitionBase){
GfxBase = IntuitionBase->GfxBase ;
win=OpenWindow(&ImageWindow);
if(win){
SetMenuStrip(win,&MainMenu);
SetPointer(win,&MyPointer[0],15,15,-8,-7);
HandleImaging(win);
ClearPointer(win);
ClearMenuStrip(win);
CloseWindow(win);
}
CloseLibrary((struct Library *)IntuitionBase);
}
}