sound & bitmaps all together!

Started by
3 comments, last by edwinnie 21 years, 11 months ago
is there a way to "incorporate" all these sound and bitmaps into some file, so that they are not "loose".
Advertisement
get zLib. compress them into a zip, and uncompress when you read; that is one way.
hmm...what abt the resource script thingy?

u see, the idea was to "compile them together" if possible,
so that if u use the program somewhere else, u dun need to
port the sound and bitmap files.

does doing the resource script help in such a way?
You want to compile them into your program? I guess you could, but then I''m pretty sure you would have to change the way you load the files.. because they are not files, they are now a resource. Err, um. (something like that)
Loading them as resources will make your *.exe much larger. What I did was create my own file type that is basically a header and then all the graphics files (I did the same thing for my sound files, too).

The header was just a struct that contained info on the files other files (# of files, file sizes, etc.).

I didn''t really need compression so I just used my own. Plus if I do need compression in the future I can just write my own codec to go along with it.

I prefer to write my own just because I learn a lot more that way.

MSVC++ 6
DirectX 7
MSVC++ 6DirectX 7

This topic is closed to new replies.

Advertisement