home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 274.lha / SimGen_Src / Read.Me < prev    next >
Text File  |  1989-07-26  |  2KB  |  47 lines

  1. Here is the source for SimGen.
  2.  
  3.    I'm sure you're saying to yourself, "What good is that
  4. going to do me?"  Well, there are some nice routines you might
  5. be interested in.  They are not real small but if you are
  6. really conserned about the size and speed then you could
  7. probably write your own so to you I say  :-p
  8.  
  9.    There are IFF ILBM (picture/brush) loading routines.
  10. The file 'PICTURE.h' defines the structures/types for keeping
  11. track of pictures and brushes.  They can do more then most
  12. other IFF routines I've seen.  They load into a bitmap or
  13. rastport.  If loaded into a rastport they will respect layers
  14. (so you can load into a window that is behind other windows.) 
  15. You can tell them where to load your picture (ie. 10,20.)  You
  16. can tell what part of the picture to load (ie.  Load from
  17. picture MyPIC.pic from pixel 10,11 width 50 height 60) so you
  18. can load less than the entire picture.  They will also
  19. allocate the memory for your picture if you don't supply it.
  20. There are some routines that I cut that would also create
  21. masks for brushes (SimGen didn't need this.)
  22.  
  23.    There are routines for allocating rastports (with display
  24. memory)
  25.  
  26.    There are routines for drawing IFF pictures and brushes
  27. with or without transparencey or in one color the shape of the
  28. brush.  These routines also do their own clipping so you can
  29. use them with a non-layered rastport (ie. A Screen)
  30.  
  31.    There is a AutoRequest type function called Message() that
  32. puts up an upto 30x16 character message and an unlimited
  33. number of buttons.  It's really easy to use.
  34.  
  35.    Someday when I find some time I will document and improve/
  36. optimize all of this.
  37.  
  38.    Good Luck.
  39.  
  40.    All of this was created with Manx C 3.6a.
  41.  
  42.    GreggT
  43.  
  44.    Use it any way you want.  It is PD.  Use it, Sell it, throw
  45. it, Eat it.  :-)
  46.  
  47.