Path: utzoo!attcan!uunet!ginosko!brutus.cs.uiuc.edu!apple!sun-barr!newstop!sun!pepper!cmcmanis
From: cmcmanis%pepper@Sun.COM (Chuck McManis)
Newsgroups: comp.sys.amiga.tech
Subject: Re: IFF to C util wanted
Message-ID: <125371@sun.Eng.Sun.COM>
Date: 27 Sep 89 19:31:26 GMT
References: <1989Sep27.013532.12517@NCoast.ORG>
Sender: news@sun.Eng.Sun.COM
Reply-To: cmcmanis@sun.UUCP (Chuck McManis)
Organization: Sun Microsystems, Mountain View
Lines: 21

In article <1989Sep27.013532.12517@NCoast.ORG> (David Wright) writes:
>	I am looking for a utility to convert IFF graphics and sound to
>C data statements so that I can keep my screens and sound effects
>internal to my program. 

For graphics you have several options, on FishDisk #64 are the IFF 
utilities, in particular check out zapicon and ilbmdump. The former
will convert a brush into an icon (which can be decompiled into C 
code with Carolyns Icon2C on the 1.3 Extras disk). The latter, will
generate a simple C declaration for the image data. Note two things,
if you don't have my fixes to bmprint.c (there in the 1.3 RKM but the
IFF disk hasn't been rereleased yet) you will have to edit the constants
used in the arrays since they will be incorrect. 

For sound stuff I haven't got a clue. Maybe you would whip something up
with the Leo/Stuart iffparse.library. 

--Chuck McManis
uucp: {anywhere}!sun!cmcmanis   BIX: cmcmanis  ARPAnet: cmcmanis@sun.com
These opinions are my own and no one elses, but you knew that didn't you.
"If I were driving a Macintosh, I'd have to stop before I could turn the wheel."