Archived

This topic is now archived and is closed to further replies.

Reading integrated binary files

This topic is 5048 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

For my next project I really want to have an all-in-one format for my game sprites, as in the data and graphics are both in the same file. After fooling around for a bit I''ve managed to get the data side loading fine, but I can''t seem to be wrapping my head around writing and reading a graphics format from the end of a binary file. My format should look something like this
|    Sprite Data     |
      ----------------------
            Image Data
      ----------------------
               End  
For the graphics format, I''ve chosen to use PNGs and have gotten those to work seperately, when they were loaded just from the file. To do this I''m using the FreeImage library, and more specifically the FreeImagePlus C++ Wrapper that was included with the download. The online documentation shows a fipMemoryIO class, but examples are sparse on how to use it. Any help is appreciated, thanks.

Share this post


Link to post
Share on other sites