Reading integrated binary files

Started by
-1 comments, last by Vangelis 20 years, 2 months ago
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.
---------------------Ryan Bujnowicz[ vangelis ]

This topic is closed to new replies.

Advertisement