Jump to content
  • Advertisement


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


Reading integrated binary files

This topic is 5355 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
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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!