home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
disks
/
disk433.lzh
/
Gwin
/
Examples.doc
< prev
next >
Wrap
Text File
|
1991-01-12
|
5KB
|
127 lines
Compiled versions of everything take up too much room on this
disk so you will have to compile some of these yourself. The
makefile assumes Manx Aztec C release 5.0b.
The examples and a brief description of each are as follows:
clipdemo
Demonstrates setup of a GWIN clipping window within an Amiga
window. (Object code was deleted to make this all fit on
one disk. You must recompile before running this program.
From a CLI window, cd to the examples directory, then type
"make clipdemo". Run by typing "clipdemo".)
colormap2
Demonstrates changing the colormap. Place cursor inside a
triangle, depress left mouse button and move cursor around.
The points of the triangles correspond to Red, Green and
Blue. Distance from the center determines how much Red,
Green or Blue.
placeobject
Demonstrates moving and placing a rectangle of various
colors. (You must compile this program.)
rubberbandline
Demonstrates a rubberband line. Simple demo intended only
to illustrate how a rubberband line is generated. (Object
code was deleted to make this all fit on one disk. You must
recompile before running this program.)
text
Demonstrates use of font selection and various text display
options. (Object code was deleted to make this all fit on
one disk. You must recompile before running this program.)
graph
Accepts a list of numbers either from the keyboard or from
standard input. The numbers are assumed to be Y
coordinates. Integer X coordinates are automatically
assigned. A graph is drawn. Menu options allow switching
between line graph and bar graph modes. If you place a list
of numbers in a file (say file1) then issue the command
"graph <file1", the numbers will be graphed.
request
Shows how to use a requester to ask the user a yes/no
question. (You must compile this program.)
screentypes
Demonstrates all 10 types of screens supported by GWIN.
(You must compile this program in order to run it.)
three-d
Allows construction of three-dimensional figures. You would
need red/blue glasses to see the three-dimensional effect
however. (Object code was deleted to make this all fit on
one disk. You must recompile before running this program.)
menu
Demonstrates how to build and use menus in GWIN.
rubberbandbox
Demonstrates building boxes using a rubberband box.
spiceplot
For you Electrical Engineers who have access to some version
of the "SPICE" program. Spiceplot reads a SPICE output file
from standard input, i.e., type: "spiceplot <spiceoutput" to
see it plot curves contained in the spiceoutput file. Note
the format of the data in the spiceoutput file. Spiceplot
is looking for the lists of node data. Depress the left
mouse button and hold, drag, and release. A rubberband box
will have appeared and the selected region will be expanded
to fill the screen. Use the menu to restore the curves to
their original scale. As the cursor moves, the coordinates
are displayed.
speedy
Demonstrates how Amiga calls can be used within a screen and
window initiated by GWIN. GWIN saved all of the effort of
bringing up a special screen and window while allowing full
use of all standard Amiga graphics functions. Speedy makes
use of direct Amiga graphics function calls to provide the
fastest possible graphics operations. This means that for
special purposes, it is possible to bypass the floating
point world/screen coordinate transformations that are a
part of normal GWIN operation. The function uigrina is
provided to allow transformationless return of x and y
cursor coordinates for greatest possible speed. The slowest
thing in "speedy" is perhaps the call to the random number
generator, "ran".
changecolor
Demonstrates color adjustment for photographing the screen.