Jump to content
  • Advertisement

Archived

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

Modian

PNG and pack files

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

Advertisement
Guest Anonymous Poster
Yeah, I noticed that, but I wanted to see if anyone knew of another way before I rewrote my PNG reading routine.

Thanks

Share this post


Link to post
Share on other sites
I use PNG files in my game. Right now, they're all grouped in seperate directories as regular files. What I want to do is pack them all together into one file. Writing the packed file is not an issue, the problem is figuring out how toread the PNG files from it. libpng expects a file pointer for its reads, which isn't very viable with them packed together. So does anyone know how I could read a PNG file from a packed file? Or should I go with a different graphic format?

Share this post


Link to post
Share on other sites
Take a look at the Code on the Cob series of articles written by Chris Hargrove of 3DRealms. They're on www.loonygames.com, and in the issue that he delves into file i/o, he explains how to make a .pak'd file.

I'm glad you wrote this in the board, because it's reminded me to find out if I could get a local copy of these for GDNet. :-)

Kevin

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!