_________________________________________________________________

Title: Intuition Library
By:    Jeremy Zullo
Date:  11/25/86
_________________________________________________________________

    This includes two source codes written in C to help the
programmer pay attention to his algorithms instead of time
wasting routines like opening screens and windows.  The two
programs have to be compiled and left in object code. And added
to the link list when the main program is being linked.  Or they
can be made into your own library.  I am currently working on
some routine for 3D plotting and animation.

    The first function (program) is called "screen".  As you can
guess it opens up screens.  This function returns the RastPort of
the screen.  The calls to it are as follows: scr=screen
(x,y,x1,y1,t,d); you must have the intution include at the
begining of your program so that the RastPort structure is
defined.  The scr is the RastPort structure of the new screen
that was just opened. X,Y are the beging X,Y coordinates of the
screen.  D is the depth of the screen in bit-planes. And the T
defines the options of the screen.  Below is a chart of the
various options:

            1 Hires
            2 Lace
            4 Dual Playfield
            8 Ham

If you want multiple options just add the numbers together. For
instance, if you wanted Hires and Lace the T value would equal 3
(1+2=3).  That is how simple it is to open the screen.  Now
instead of having a gabolgy (sp?) code of say 30 lines, now it is
condensed to just one single function.


Window:

    The other command is the "window" function.  The calling is
like Win=window(scr,ti,x,y,x1,y1,type); Where the SCR is the
rastport of the screen that you want the window to appear on.
The TI is a pointer to the text for the window. The XY are self
explanatory.  The X1, and Y1 are the length and width of the
window repectivly. And the type is the different options as shown
on the following list:

            1 Window Drag Gadget
            2   "    Close  "
            4   "    Depth  "
            8   "   Sizing  "
           16 Backdrop
           32 Activate
           64 ReportMouse
          128 Simple Refresh
          256 Smart Refresh
          512 No Care Refresh
         1024 Active Window
         2048 InActive Window
         4096 Gimme ZeroZero
         8192 Borderless

If you want multiple options just add the T values together. The
Win is the RastPort of the window returned from the window
function.

_________________________________________________________________


I should be done with some of the 3D routines in a few days.  As
can be seen there are an inlimited number of easy routines that
can be made easier by simply sticking them into their own
fuctions and making a library out of them.  Currently, I am
working on rewriting the Basic routines as Fuctions which will
make it easy to design your own basic compilers.  I will be
releasing a PD MSB compiler in a matter of weeks.  I can be
contacted by phone if there is any problems at (516-475-6741).


                                           -Jeremy Zullo
