home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / gwin_433.lzh / Gwin / Examples.doc < prev    next >
Text File  |  1991-01-12  |  5KB  |  127 lines

  1.  
  2. Compiled versions of everything take up too much room on this
  3. disk so you will have to compile some of these yourself.   The
  4. makefile assumes Manx Aztec C release 5.0b.
  5.  
  6. The examples and a brief description of each are as follows:
  7.  
  8.  
  9.         clipdemo
  10.  
  11.                 Demonstrates setup of a GWIN clipping window within an Amiga
  12.                 window. (Object code was deleted to make this all fit on
  13.                 one disk.  You must recompile before running this program.
  14.                 From a CLI window, cd to the examples directory, then type
  15.                 "make clipdemo".  Run by typing "clipdemo".)
  16.  
  17.  
  18.         colormap2
  19.  
  20.                 Demonstrates changing the colormap.  Place cursor  inside  a
  21.                 triangle,  depress left mouse button and move cursor around.
  22.                 The points of the triangles correspond  to  Red,  Green  and
  23.                 Blue.  Distance  from  the  center  determines how much Red,
  24.                 Green or Blue.
  25.  
  26.  
  27.         placeobject
  28.  
  29.                 Demonstrates moving  and  placing  a  rectangle  of  various
  30.                 colors.  (You must compile this program.)
  31.  
  32.  
  33.         rubberbandline
  34.  
  35.                 Demonstrates a  rubberband  line.  Simple demo intended only
  36.                 to illustrate how a rubberband line is generated.    (Object
  37.                 code was deleted to make this all fit on one disk.  You must
  38.                 recompile before running this program.)
  39.  
  40.  
  41.         text
  42.  
  43.                 Demonstrates  use of font selection and various text display
  44.                 options.  (Object code was deleted to make this all  fit  on
  45.                 one disk.  You must recompile before running this program.)
  46.  
  47.  
  48.         graph
  49.  
  50.                 Accepts  a  list of numbers either from the keyboard or from
  51.                 standard input.    The  numbers  are   assumed   to   be   Y
  52.                 coordinates.    Integer   X  coordinates  are  automatically
  53.                 assigned.  A graph is drawn.  Menu options  allow  switching
  54.                 between line graph and bar graph modes.  If you place a list
  55.                 of  numbers  in  a  file  (say file1) then issue the command
  56.                 "graph <file1", the numbers will be graphed.
  57.  
  58.  
  59.         request
  60.  
  61.                 Shows how to use a  requester  to  ask  the  user  a  yes/no
  62.                 question.   (You must compile this program.)
  63.  
  64.  
  65.         screentypes
  66.  
  67.                 Demonstrates all 10 types of screens supported by GWIN.
  68.                 (You must compile this program in order to run it.)
  69.  
  70.  
  71.         three-d
  72.  
  73.                 Allows construction of three-dimensional figures.  You would
  74.                 need  red/blue  glasses  to see the three-dimensional effect
  75.                 however.  (Object code was deleted to make this all  fit  on
  76.                 one disk.  You must recompile before running this program.)
  77.  
  78.  
  79.         menu
  80.  
  81.                 Demonstrates how to build and use menus in GWIN.
  82.  
  83.  
  84.         rubberbandbox
  85.  
  86.                 Demonstrates building boxes using a rubberband box.
  87.  
  88.  
  89.         spiceplot
  90.  
  91.                 For you Electrical Engineers who have access to some version
  92.                 of the "SPICE" program.  Spiceplot reads a SPICE output file
  93.                 from standard input, i.e., type: "spiceplot <spiceoutput" to
  94.                 see it  plot curves contained in the spiceoutput file.  Note
  95.                 the format of the data in the spiceoutput file.    Spiceplot
  96.                 is looking  for  the  lists  of node data.  Depress the left
  97.                 mouse button and hold, drag, and release.  A rubberband  box
  98.                 will  have appeared and the selected region will be expanded
  99.                 to fill the screen.  Use the menu to restore the  curves  to
  100.                 their original  scale.  As the cursor moves, the coordinates
  101.                 are displayed.
  102.  
  103.  
  104.         speedy
  105.  
  106.                 Demonstrates how Amiga calls can be used within a screen and
  107.                 window  initiated  by  GWIN. GWIN saved all of the effort of
  108.                 bringing up a special screen and window while allowing  full
  109.                 use of  all standard Amiga graphics functions.  Speedy makes
  110.                 use of direct Amiga graphics function calls to  provide  the
  111.                 fastest possible  graphics  operations.  This means that for
  112.                 special purposes, it is  possible  to  bypass  the  floating
  113.                 point  world/screen  coordinate  transformations  that are a
  114.                 part of normal GWIN operation.    The  function  uigrina  is
  115.                 provided  to  allow  transformationless  return  of  x and y
  116.                 cursor coordinates for greatest possible speed.  The slowest
  117.                 thing in "speedy" is perhaps the call to the  random  number
  118.                 generator, "ran".
  119.  
  120.  
  121.  
  122.         changecolor
  123.  
  124.                 Demonstrates color adjustment for photographing the screen.
  125.  
  126.  
  127.