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 >
Wrap
Text File
|
1989-07-26
|
2KB
|
47 lines
Here is the source for SimGen.
I'm sure you're saying to yourself, "What good is that
going to do me?" Well, there are some nice routines you might
be interested in. They are not real small but if you are
really conserned about the size and speed then you could
probably write your own so to you I say :-p
There are IFF ILBM (picture/brush) loading routines.
The file 'PICTURE.h' defines the structures/types for keeping
track of pictures and brushes. They can do more then most
other IFF routines I've seen. They load into a bitmap or
rastport. If loaded into a rastport they will respect layers
(so you can load into a window that is behind other windows.)
You can tell them where to load your picture (ie. 10,20.) You
can tell what part of the picture to load (ie. Load from
picture MyPIC.pic from pixel 10,11 width 50 height 60) so you
can load less than the entire picture. They will also
allocate the memory for your picture if you don't supply it.
There are some routines that I cut that would also create
masks for brushes (SimGen didn't need this.)
There are routines for allocating rastports (with display
memory)
There are routines for drawing IFF pictures and brushes
with or without transparencey or in one color the shape of the
brush. These routines also do their own clipping so you can
use them with a non-layered rastport (ie. A Screen)
There is a AutoRequest type function called Message() that
puts up an upto 30x16 character message and an unlimited
number of buttons. It's really easy to use.
Someday when I find some time I will document and improve/
optimize all of this.
Good Luck.
All of this was created with Manx C 3.6a.
GreggT
Use it any way you want. It is PD. Use it, Sell it, throw
it, Eat it. :-)