home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 092.lha / Bob_to_C / brush.txt < prev    next >
Text File  |  1986-11-20  |  3KB  |  61 lines

  1. ************** ALL FILES IN THIS ARC FILE ARE PUBLIC DOMAIN ***************
  2. ************** AND MAY BE FREELY DISTRIBUTED FOR NON-PROFIT ***************
  3.  
  4.   I had some problems with another program like "brush" and wasn't able to
  5. create data for my graphic images drawn with DeluxPaint and Aegis Images.
  6. So "brush" was born.
  7.   To use brush, type:
  8.  
  9. brush <[filename]> <[dataname]> <[b] or [s]> [d]
  10.  
  11.     filename: meaning the IFF brushfile from DuluxPaint or .win from Aegis
  12. Images or any other probram that uses the IFF graphics format.
  13.     dataname: the program labels your data UWORD dataname[]={
  14.            b: for bob  or s for sprite,
  15.            d: for #defines (this one is an option)
  16.  
  17. Entered exactly as above the output of brush will go to the CLI. I found this
  18. handy for examining the data before I write it to a file.
  19.  
  20.   To write it to a file just use re-direction. Example.....
  21.  
  22. brush >outfilename filename dataname b
  23.  
  24.   I have included the "C" source for a bob that follows the bird animated
  25. mouse pointer. Please, keep in mind that this is just an example and not the
  26. best way to code for graphics data. It was just a quick and easy way to get
  27. everything together for the demo.
  28.  
  29.   Type this in exactly, at the command line:
  30.  
  31. brush >insert.c demopic mydata b d
  32.  
  33.   A file insert.c will be created. For ease have bob.c in the same directory
  34. and compile and link.
  35.  
  36.   lc -ad -L bob
  37.  
  38.   The disadvantage of the above metheod used in bob.c is that all external
  39. initialized data will go to chip ram, the structures and ect. If you are a 
  40. beginner like me you may appreciate the easy way that the program compiles
  41. and links. If you are an expert I bow my head in shame.<grin>
  42.   
  43.   That's it for bobs except that large images with five planes will tax ram
  44. on a 512k machine. Very large ASCII files are created.
  45.   Sprites use interleaved data. When you use the sprite option, your image
  46. must be 16 pixels or less in width and only 2 planes deep, else error
  47. message. In bob.c the bird data for the pointer animation was created with
  48. "brush".  
  49.   One final note on the Image struture and the vsprite initialization. The
  50. default from brush is to set PlanePick to all on and PlaneOnOff to zero. You
  51. may change these to whatever you may wish.
  52.   If you have any suggestions for "brush" please let me know via the Lattice
  53. LBBS or Compuserve Amiga Forum.
  54.  
  55.                                             Bob Cox 
  56.                                             CompuServe 72017,663
  57.                                                     or
  58.                                             Lattice Amiga Forum 
  59.  
  60.  
  61.