sprites
i need an app to convert my bitmaps .BMP files into arrays of data the pallete data should be extracted also i need mor making games via c++ for my school project i tried lots of photo editing software but all port one format or other i want BMP to array data. can anyone help.
You can very quickly write a program that scans a directory and saves all files into a single file. Is that what you're trying to do?
Just load the bitmaps in like normal, and save them in your own format (Bpp, Width, Height, Pixels).
You can also go so far as to have a table header of filenames with file offsets.
struct Header
{
CHAR *OriginalName;
ULONG SeekOffset;
};
Header Offsets[NumFiles];
Then do a string compare when you need to load in a certain object.
Just load the bitmaps in like normal, and save them in your own format (Bpp, Width, Height, Pixels).
You can also go so far as to have a table header of filenames with file offsets.
struct Header
{
CHAR *OriginalName;
ULONG SeekOffset;
};
Header Offsets[NumFiles];
Then do a string compare when you need to load in a certain object.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement